nixrajput / flutter_carousel_widget

A customizable Flutter carousel widget with infinite scrolling, auto-scrolling, pre-built indicators, expandable widgets, auto-sized child support, and enlarged center page.
https://pub.dev/packages/flutter_carousel_widget
MIT License
34 stars 20 forks source link

Indicator not working properly for last item when using padEnds : false with viewportFraction less than 1 #17

Closed KautilyaThaker closed 1 year ago

KautilyaThaker commented 1 year ago

The animation of the Indicator doesn't complete for some reasons for last item, when the attribute of CarouselOptions are set to padEnd: false and viewportFraction: 0.8 (any less than 1). As a result, the Circle of the last indicator doesn't gets completely fill with color. This problem is also in your sample code available on 'pub.dev' when you jus set padEnds to false. Please solve it as fast as possible because the UI itself is not correct.