Skip to content

Commit

Permalink
Add animated smooth indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaSys committed Jun 10, 2023
1 parent 818ae64 commit 94e5cbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/src/view/widget/carousel_slider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ class _CarouselSliderState extends State<CarouselSlider> {
},
),
),
SmoothIndicator(
AnimatedSmoothIndicator(
effect: const WormEffect(
dotColor: Colors.white,
activeDotColor: AppColor.darkOrange,
),
offset: newIndex.toDouble(),
count: widget.items.length,
activeIndex: newIndex,
)
],
);
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94e5cbf

Please sign in to comment.