Skip to content

Commit 00ef21c

Browse files
committed
bumped to version 2.2.0
1 parent ae826e6 commit 00ef21c

File tree

8 files changed

+53
-51
lines changed

8 files changed

+53
-51
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
## 2.2.0
44

55
* **New Feature**: Support for custom slide indicators added.
6+
* **Documentation**: Updated the documentation to show all contributors.
7+
* **Documentation**: Updated the documentation to demonstrate the use of custom slide indicator.
8+
* **Fix**: `issue #28` fixed.
9+
* **Fix**: `issue #30` fixed.
10+
* **Improvement**: Performance improvements.
11+
* **Optimization**: Removed unnecessary codes.
612

713
## 2.1.2
814

9-
* **Documentation**: Updated the documentation to display the sceenshots.
15+
* **Documentation**: Updated the documentation to display the screenshots.
1016

1117
## 2.1.1
1218

13-
* **Documentation**: Updated the documentation to display the sceenshots.
19+
* **Documentation**: Updated the documentation to display the screenshots.
1420

1521
## 2.1.0
1622

example/android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ android {
3737
jvmTarget = '1.8'
3838
}
3939

40+
lintOptions {
41+
disable 'InvalidPackage'
42+
checkReleaseBuilds false
43+
}
44+
4045
sourceSets {
4146
main.java.srcDirs += 'src/main/kotlin'
4247
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
23
package="com.example.example">
34

45
<uses-permission android:name="android.permission.INTERNET" />

example/android/build.gradle

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
buildscript {
2-
ext.kotlin_version = '1.6.10'
3-
repositories {
4-
google()
5-
mavenCentral()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
}
12-
}
13-
14-
allprojects {
15-
repositories {
16-
google()
17-
mavenCentral()
18-
}
19-
}
20-
21-
rootProject.buildDir = '../build'
22-
subprojects {
23-
project.buildDir = "${rootProject.buildDir}/${project.name}"
24-
}
25-
subprojects {
26-
project.evaluationDependsOn(':app')
27-
}
28-
29-
task clean(type: Delete) {
30-
delete rootProject.buildDir
31-
}
1+
buildscript {
2+
ext.kotlin_version = '1.7.10'
3+
repositories {
4+
google()
5+
mavenCentral()
6+
}
7+
8+
dependencies {
9+
classpath 'com.android.tools.build:gradle:7.3.1'
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11+
}
12+
}
13+
14+
allprojects {
15+
repositories {
16+
google()
17+
mavenCentral()
18+
}
19+
}
20+
21+
rootProject.buildDir = '../build'
22+
subprojects {
23+
project.buildDir = "${rootProject.buildDir}/${project.name}"
24+
}
25+
subprojects {
26+
project.evaluationDependsOn(':app')
27+
}
28+
29+
tasks.register("clean", Delete) {
30+
delete rootProject.buildDir
31+
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip

example/lib/main.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import 'package:flutter_carousel_widget/flutter_carousel_widget.dart';
33

44
import 'app_themes.dart';
55

6+
void main() async {
7+
WidgetsFlutterBinding.ensureInitialized();
8+
runApp(const FlutterCarouselWidgetDemo());
9+
}
10+
611
class Slide {
712
Slide({
813
required this.title,
@@ -50,8 +55,6 @@ final List<Widget> sliders = slides
5055
)
5156
.toList();
5257

53-
void main() => runApp(const FlutterCarouselWidgetDemo());
54-
5558
class FlutterCarouselWidgetDemo extends StatelessWidget {
5659
const FlutterCarouselWidgetDemo({Key? key}) : super(key: key);
5760

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ dependencies:
1515
flutter_carousel_widget:
1616
path: ../
1717

18-
cupertino_icons: ^1.0.5
18+
cupertino_icons: ^1.0.6
1919

2020
dev_dependencies:
2121
flutter_test:
2222
sdk: flutter
2323

24-
flutter_lints: ^2.0.1
24+
flutter_lints: ^3.0.1
2525

2626
flutter:
2727
uses-material-design: true

lib/src/_expandable_carousel_widget.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,6 @@ class ExpandableCarouselState extends State<ExpandableCarousel>
100100
});
101101
}
102102
});
103-
104-
// if (_currentPage != newPage) {
105-
// //...
106-
// }
107103
}
108104

109105
void _changeIndexPageDelta() {
@@ -121,15 +117,6 @@ class ExpandableCarouselState extends State<ExpandableCarousel>
121117
});
122118
}
123119
});
124-
125-
// WidgetsBinding.instance.addPostFrameCallback((_) {
126-
// if (mounted) {
127-
// setState(() {
128-
// _currentPage = _pageController!.page!.floor();
129-
// _pageDelta = _pageController!.page! - _pageController!.page!.floor();
130-
// });
131-
// }
132-
// });
133120
}
134121

135122
@override

0 commit comments

Comments
 (0)