Flutter: ListView disable scrolling with touchscreen

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


Solution 1:

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

NeverScrollableScrollPhysics class

Scroll physics that does not allow the user to scroll.

Solution 2:

Inside ListView widget, use

physics: const NeverScrollableScrollPhysics()