disableGesture: true, no't work
Same problem. With the latest version of the library 4.2.1, when setting the property disableGesture: true the carousel still swipes. I also noticed that instead of sending CarouselPageChangedReason.manual reason in the onPageChanged listener, it sends CarouselPageChangedReason.controller.
EDIT: I solved the problem without the disableGesture property but using the NeverScrollableScrollPhysics()
scrollPhysics: shouldScroll ? scrollPhysics : const NeverScrollableScrollPhysics()
Same problem. With the latest version of the library 4.2.1, when setting the property
disableGesture: truethe carousel still swipes. I also noticed that instead of sendingCarouselPageChangedReason.manualreason in theonPageChangedlistener, it sendsCarouselPageChangedReason.controller.EDIT: I solved the problem without the
disableGestureproperty but using theNeverScrollableScrollPhysics()scrollPhysics: shouldScroll ? scrollPhysics : const NeverScrollableScrollPhysics()
you can use physics: widget.options.scrollPhysics
is this issue fixed
@jishnulal-crypto not yet.. not fixed.
I temporarily solved it using the AbsorbPointer widget.
AbsorbPointer(
absorbing: true,
child: CarouselSlider(
...
)
)
@kishan-dhankecha
I'm currently using the latest version 4.2.1, but it doesn't work.
disableGesture: true
Even with this setting, the gesture works.
There are various types of gestures, but if disableGesture: true, the first one works for manual scrolling.
Please click on the link given in above comment!!
@kishan-dhankecha
Sorry. Has the carousel_slider plugin been replaced by the carousel_slider_plus plugin?
Will the carousel_slider plugin not be updated in the future?
The carousel_slider is not maintained anymore so I have created my own fork carousel_slider_plus and pushed it on pub.dev.
I am also fixing some bugs that are being discovered in carousel_slider.
@kishan-dhankecha Thanks :)