flutter_carousel_slider icon indicating copy to clipboard operation
flutter_carousel_slider copied to clipboard

Infinitely linear carousel

Open kevinwiranata opened this issue 4 years ago • 1 comments

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.

kevinwiranata avatar Jun 27 '20 18:06 kevinwiranata

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,
),

fbuireu avatar Feb 16 '21 11:02 fbuireu