Home > Software design >  how to make UnScrollable list with button in flutter
how to make UnScrollable list with button in flutter

Time:07-09

can some one tell me how to make a long list with multiple widgets , but not scrollable , instead , there will be a button (like the arrow on the right in the picture) when you click it, it will slide to the next widgets available with the simple animation (not poping the current widgets sliding it instead), do we have a widget specified for that ? here is example of what i want :

enter image description here

CodePudding user response:

In your Scrollable widget, set physics to the NeverScrollableScrollPhysics() calss. For example:

SingleChildScrollView(physics: NeverScrollableScrollPhysics(),
...
)

CodePudding user response:

The NeverScrollableScrollPhysics class will do this:

NeverScrollableScrollPhysics class

Scroll physics that does not allow the user to scroll.

  • Related