Skip to content

Commit

Permalink
bumped to version 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nixrajput committed Dec 7, 2023
1 parent ae826e6 commit 00ef21c
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 51 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ android {
jvmTarget = '1.8'
}

lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
Expand Down
1 change: 1 addition & 0 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.example">

<uses-permission android:name="android.permission.INTERNET" />
Expand Down
62 changes: 31 additions & 31 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 5 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -50,8 +55,6 @@ final List<Widget> sliders = slides
)
.toList();

void main() => runApp(const FlutterCarouselWidgetDemo());

class FlutterCarouselWidgetDemo extends StatelessWidget {
const FlutterCarouselWidgetDemo({Key? key}) : super(key: key);

Expand Down
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 0 additions & 13 deletions lib/src/_expandable_carousel_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ class ExpandableCarouselState extends State<ExpandableCarousel>
});
}
});

// if (_currentPage != newPage) {
// //...
// }
}

void _changeIndexPageDelta() {
Expand All @@ -121,15 +117,6 @@ class ExpandableCarouselState extends State<ExpandableCarousel>
});
}
});

// WidgetsBinding.instance.addPostFrameCallback((_) {
// if (mounted) {
// setState(() {
// _currentPage = _pageController!.page!.floor();
// _pageDelta = _pageController!.page! - _pageController!.page!.floor();
// });
// }
// });
}

@override
Expand Down

0 comments on commit 00ef21c

Please sign in to comment.