diff --git a/CHANGELOG.md b/CHANGELOG.md index e3492cf..5e8889f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,14 +3,20 @@ ## 2.2.0 * **New Feature**: Support for custom slide indicators added. +* **Documentation**: Updated the documentation to show all contributors. +* **Documentation**: Updated the documentation to demonstrate the use of custom slide indicator. +* **Fix**: `issue #28` fixed. +* **Fix**: `issue #30` fixed. +* **Improvement**: Performance improvements. +* **Optimization**: Removed unnecessary codes. ## 2.1.2 -* **Documentation**: Updated the documentation to display the sceenshots. +* **Documentation**: Updated the documentation to display the screenshots. ## 2.1.1 -* **Documentation**: Updated the documentation to display the sceenshots. +* **Documentation**: Updated the documentation to display the screenshots. ## 2.1.0 diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 17f9133..2f4bb85 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -37,6 +37,11 @@ android { jvmTarget = '1.8' } + lintOptions { + disable 'InvalidPackage' + checkReleaseBuilds false + } + sourceSets { main.java.srcDirs += 'src/main/kotlin' } diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 919308f..3f80f47 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,5 @@ diff --git a/example/android/build.gradle b/example/android/build.gradle index 871ba76..b7c2752 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,31 +1,31 @@ -buildscript { - ext.kotlin_version = '1.6.10' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:4.1.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - mavenCentral() - } -} - -rootProject.buildDir = '../build' -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} -subprojects { - project.evaluationDependsOn(':app') -} - -task clean(type: Delete) { - delete rootProject.buildDir -} +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.1' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 0bfb94b..3be2f61 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip diff --git a/example/lib/main.dart b/example/lib/main.dart index 643ecdb..1a6ba37 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -3,6 +3,11 @@ import 'package:flutter_carousel_widget/flutter_carousel_widget.dart'; import 'app_themes.dart'; +void main() async { + WidgetsFlutterBinding.ensureInitialized(); + runApp(const FlutterCarouselWidgetDemo()); +} + class Slide { Slide({ required this.title, @@ -50,8 +55,6 @@ final List sliders = slides ) .toList(); -void main() => runApp(const FlutterCarouselWidgetDemo()); - class FlutterCarouselWidgetDemo extends StatelessWidget { const FlutterCarouselWidgetDemo({Key? key}) : super(key: key); diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 687b0d6..bfce6e8 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -15,13 +15,13 @@ dependencies: flutter_carousel_widget: path: ../ - cupertino_icons: ^1.0.5 + cupertino_icons: ^1.0.6 dev_dependencies: flutter_test: sdk: flutter - flutter_lints: ^2.0.1 + flutter_lints: ^3.0.1 flutter: uses-material-design: true diff --git a/lib/src/_expandable_carousel_widget.dart b/lib/src/_expandable_carousel_widget.dart index 6c83b88..01a4950 100644 --- a/lib/src/_expandable_carousel_widget.dart +++ b/lib/src/_expandable_carousel_widget.dart @@ -100,10 +100,6 @@ class ExpandableCarouselState extends State }); } }); - - // if (_currentPage != newPage) { - // //... - // } } void _changeIndexPageDelta() { @@ -121,15 +117,6 @@ class ExpandableCarouselState extends State }); } }); - - // WidgetsBinding.instance.addPostFrameCallback((_) { - // if (mounted) { - // setState(() { - // _currentPage = _pageController!.page!.floor(); - // _pageDelta = _pageController!.page! - _pageController!.page!.floor(); - // }); - // } - // }); } @override