diff --git a/lib/src/view/widget/carousel_slider.dart b/lib/src/view/widget/carousel_slider.dart index e28c81f..4acb405 100644 --- a/lib/src/view/widget/carousel_slider.dart +++ b/lib/src/view/widget/carousel_slider.dart @@ -38,13 +38,13 @@ class _CarouselSliderState extends State { }, ), ), - SmoothIndicator( + AnimatedSmoothIndicator( effect: const WormEffect( dotColor: Colors.white, activeDotColor: AppColor.darkOrange, ), - offset: newIndex.toDouble(), count: widget.items.length, + activeIndex: newIndex, ) ], ); diff --git a/pubspec.lock b/pubspec.lock index fb607e0..0bf6fae 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -119,10 +119,10 @@ packages: dependency: transitive description: name: lints - sha256: "5e4a9cd06d447758280a8ac2405101e0e2094d2a1dbdd3756aec3fe7775ba593" + sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" url: "https://pub.dev" source: hosted - version: "2.0.1" + version: "2.1.1" matcher: dependency: transitive description: @@ -164,10 +164,10 @@ packages: dependency: "direct main" description: name: smooth_page_indicator - sha256: "49e9b6a265790454c39bd4a447a02f398c02b44b2602e7c5e3a381dc2e3b4102" + sha256: "725bc638d5e79df0c84658e1291449996943f93bacbc2cec49963dbbab48d8ae" url: "https://pub.dev" source: hosted - version: "1.0.0+2" + version: "1.1.0" source_span: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 9a3782d..fbf3a78 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: get: ^4.6.5 bottom_navy_bar: ^6.0.0 - smooth_page_indicator: ^1.0.0+2 + smooth_page_indicator: ^1.1.0 flutter_rating_bar: ^4.0.1 font_awesome_flutter: ^10.4.0 animations: ^2.0.7