Disable Scrolling ListView in Flutter (DSLF)



AVAILABLE:    5

Is it possible to make a ListView scrollable only via a ScrollController and not through touch gestures? Could you elaborate on what you've tried and what hasn't worked?

Solution

There is a property in ListViewphysics = NeverScrollableScrollPhysics();. You can implement this based on certain conditions.

As mentioned in the comments, the NeverScrollableScrollPhysics class achieves this:

NeverScrollableScrollPhysics Class

Scroll physics that prevents the user from scrolling.


Post a Comment

Previous Next

نموذج الاتصال