flutter_carousel_slider icon indicating copy to clipboard operation
flutter_carousel_slider copied to clipboard

Disable pausing the scroll

Open khaledkhj opened this issue 4 years ago • 3 comments
trafficstars

Hi,

Now, whenever the user scrolls, it scrolls by one item only either left or right. Is there any way to just let it scroll, instead of pausing the scroll? Something similar to RecyclerView in Android. This is to be for manual scroll.

Thank you.

khaledkhj avatar Oct 19 '21 01:10 khaledkhj

Hi!

In the options there is a argument called pageSnapping

  /// Set to false to disable page snapping, useful for custom scroll behavior.
  ///
  /// Default to `true`.
  final bool pageSnapping;

Set it to false to get the behaviour you ask for!

joelbrostrom avatar Oct 22 '21 17:10 joelbrostrom

Yeah it did work. thanks a lot @joelbrostrom.

khaledkhj avatar Oct 23 '21 01:10 khaledkhj

Wondering if the following can be achieved, currently, it scrolls without snapping the item but it does not stop on the last item when the scrolling is ended. it would be great that can be achieved.

khaledkhj avatar Oct 23 '21 02:10 khaledkhj