Skip to content

Commit 550f634

Browse files
committed
updated to version 2.0.0+1
1 parent 0b1bdd1 commit 550f634

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 2.0.0+1
4+
5+
* **Fix**: Enums are now exported.
6+
* **New Feature**: `ExpandableCarousel` widget added.
7+
* **Breaking Change**: `scrollPhysics` is now `physics` in `CarouselOptions`.
8+
* **Breaking Change**: `carouselController` is now `controller` in `CarouselOptions`.
9+
* **Breaking Change**: Project architecture changed.
10+
* **Fix**: All known bug fixed and removed.
11+
* **Improvement**: Performance improvements.
12+
* **Optimization**: Removed unnecessary codes.
13+
314
## 2.0.0
415

516
* **New Feature**: `ExpandableCarousel` widget added.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Add `flutter_carousel_widget` as a dependency in your `pubspec.yaml` file:
3131

3232
```dart
3333
dependencies:
34-
flutter_carousel_widget: ^2.0.0
34+
flutter_carousel_widget: ^2.0.0+1
3535
```
3636

3737
And import it:
@@ -77,7 +77,7 @@ Expandable Carousel is a carousel widget which automatically expands to the size
7777
```dart
7878
ExpandableCarousel(
7979
options: CarouselOptions(
80-
autoPlay: false,
80+
autoPlay: true,
8181
autoPlayInterval: const Duration(seconds: 2),
8282
),
8383
items: [1,2,3,4,5].map((i) {

example/lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ class _CarouselWithIndicatorState extends State<CarouselWithIndicatorDemo> {
330330
viewportFraction: 1.0,
331331
showIndicator: false,
332332
height: 400.0,
333-
onPageChanged: (index, reason) {
333+
onPageChanged: (int index, CarouselPageChangedReason reason) {
334334
setState(() {
335335
_current = index;
336336
});

lib/flutter_carousel_widget.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export 'package:flutter_carousel_widget/src/_expandable_carousel_widget.dart';
22
export 'package:flutter_carousel_widget/src/_flutter_carousel_widget.dart';
3+
export 'package:flutter_carousel_widget/src/enums/carousel_page_changed_reason.dart';
4+
export 'package:flutter_carousel_widget/src/enums/center_page_enlarge_strategy.dart';
35
export 'package:flutter_carousel_widget/src/helpers/flutter_carousel_controller.dart';
46
export 'package:flutter_carousel_widget/src/helpers/flutter_carousel_options.dart';
57
export 'package:flutter_carousel_widget/src/helpers/flutter_carousel_state.dart';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_carousel_widget
22
description: A customizable carousel slider widget in Flutter which supports inifinte scrolling, auto scrolling, custom child widget, custom animations and built-in indicators.
3-
version: 2.0.0
3+
version: 2.0.0+1
44
homepage: https://github.com/nixrajput
55
repository: https://github.com/nixrajput/flutter_carousel_widget
66
issue_tracker: https://github.com/nixrajput/flutter_carousel_widget/issues

0 commit comments

Comments
 (0)