prevent scrolling based on a condition carasouel sllider flutter code example
Example 1: make listview not scrollable flutter
ListView(
physics: NeverScrollableScrollPhysics(), // <-- this will disable scroll
shrinkWrap: true,
children: [],
),
Example 2: flutter listview disable scroll
physics: const NeverScrollableScrollPhysics()