disable scrollcontainer when on top flutter code example
Example 1: make listview not scrollable flutter
ListView(
physics: NeverScrollableScrollPhysics(), // <-- this will disable scroll
shrinkWrap: true,
children: [],
),
Example 2: disable scrollview flutter
physics = NeverScrollableScrollPhysics()