Search code examples
flutterdartflutter-layoutflutter-webflutter-animation

how to make UnScrollable list with button in flutter


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


Solution

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

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