You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal to add currentIndex to CarouselController and onItemChanged to CarouselView #169207
Now that CarouselController supports animateToItem ...
However, there's currently no way to determine which item is currently visible. This makes it difficult to decide which index to animate to next
Proposal
Add a property to CarouselController (e.g., currentIndex) to expose the index of the currently visible item.
Add an onItemChanged callback to the CarouselView widget to notify listeners whenever the active item changes.
Reacted by admincode1, Mairramer, Martin Sellergren, kurbatxx, dazhuklev and Enes Cerrahoğlu
changed the title [-]CarouselController current item index property[/-][+]Proposal to add `currentIndex` to `CarouselController` and `onItemChanged` to `CarouselView `[/+]on May 22, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-]CarouselController current iten index property[/-][+]CarouselController current item index property[/+][-]CarouselController current item index property[/-][+]Proposal to add `currentIndex` to `CarouselController` and `onItemChanged` to `CarouselView `[/+]Add leadingIndex to CarouselController and onItemChanged to CarouselV…
github-actions commentedon Feb 4, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Add leadingIndex to CarouselController and onItemChanged to CarouselV…