Open bigbingg opened 7 months ago
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 sendingCarouselPageChangedReason.manual
reason in theonPageChanged
listener, it sendsCarouselPageChangedReason.controller
.EDIT: I solved the problem without the
disableGesture
property 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(
...
)
)
@jishnulal-crypto, @JosephNK
This issue is already fixed and live on pub.dev, This is my own fork.
@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 :)
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 sendingCarouselPageChangedReason.manual
reason in theonPageChanged
listener, it sendsCarouselPageChangedReason.controller
.EDIT: I solved the problem without the
disableGesture
property but using theNeverScrollableScrollPhysics()