flutter_carousel_slider
flutter_carousel_slider copied to clipboard
Infinitely linear carousel
I would like to make a carousel that is infinitely linearly playing,
This would be similar to something like a stock headline carousel.
I'm confused as to how to set the autoPlayInterval
and autoPlayAnimationDuration
options correctly.
Whatever I set the above values to, the carousel always 'freezes' a bit when an item is in the middle of the carousel for a split second, but I want this to be endlessly moving.
If you put the same value in the autoPlayAnimationDuration
as well as autoPlayInterval
does the trick, since the animation doesn't delay between intervals. For example:
autoPlayAnimationDuration: const Duration(
milliseconds: 3000,
),
autoPlayInterval: const Duration(
milliseconds: 3000,
),