Flutter: ListView disable scrolling with touchscreen

Issue

Is it possible to let a ListView only be scrollable with the ScrollController and not with the touchscreen?

Solution

As mentioned in the comments, the NeverScrollableScrollPhysics class will do this:

NeverScrollableScrollPhysics class

Scroll physics that does not allow the user to scroll.

Answered By – Danny Tuppeny

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published