Use case
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.
Use case
Now that
CarouselControllersupportsanimateToItem...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
onItemChangedcallback to theCarouselViewwidget to notify listeners whenever the active item changes.