flutter_carousel_slider icon indicating copy to clipboard operation
flutter_carousel_slider copied to clipboard

Expose `_state?.pageController?.position.activity?.isScrolling` on `CarouselController`

Open ChopinDavid opened this issue 2 years ago • 0 comments

It would be useful to be able to check whether the pageController of our CarouselController is currently scrolling. As for our use case, my team is using CarouselController.nextPage and CarouselController.previousPage to animate between carousel items. We do not want to allow the user to trigger this method multiple times while the pageController is scrolling, i.e. by spam tapping the "next" or "previous" buttons. Doing so creates an ugly "stuttering" effect while the user spam taps.

ChopinDavid avatar Oct 02 '23 19:10 ChopinDavid