serenader2014 / flutter_carousel_slider

A flutter carousel widget, support infinite scroll, and custom child widget.
https://pub.dev/packages/carousel_slider
MIT License
1.56k stars 523 forks source link

Disable Swipe Gesuture? #359

Closed seikosantana closed 1 year ago

seikosantana commented 1 year ago

Hi, I am seeing if I can use this widget as step-by-step user guide. Is it possible to disable the swipe change page so user cannot change the current active page?

Thanks in advance

RUSSCITY commented 1 year ago

Search for the same functionality. @seikosantana did you found any solution?

seikosantana commented 1 year ago

I ended up using a different library

hm-arora commented 1 year ago

You can use AbsorbPointer to disable touch on CarouselSlider https://stackoverflow.com/questions/54220859/flutter-disable-touch-on-the-entire-screen

brightchip commented 1 year ago

pass this options: CarouselOptions( scrollPhysics: this.allowSwipeToChangePages ? null : NeverScrollableScrollPhysics(),

sleewok commented 1 year ago

pass this options: CarouselOptions( scrollPhysics: this.allowSwipeToChangePages ? null : NeverScrollableScrollPhysics(),

Doesn't work for me...

hadi7khan commented 5 months ago

@seikosantana which library you used?

seikosantana commented 5 months ago

@seikosantana which library you used?

@hadi7khan i no longer remember since i have moved on from flutter. I'll take a look on my source when i have access to it

hadi7khan commented 5 months ago

@seikosantana Please do, This issue is giving me headache