Answers for "listview scroll flutter"

3

make listview not scrollable flutter

ListView(
   physics: NeverScrollableScrollPhysics(), // <-- this will disable scroll
   shrinkWrap: true,
   children: [],
 ),
Posted by: Guest on September-17-2020
0

flutter listview scroll horizontal

ListView(
  // This next line does the trick.
  scrollDirection: Axis.horizontal,
  children: <Widget>[
    Container(
      width: 160.0,
      color: Colors.red,
    ),
    Container(
      width: 160.0,
      color: Colors.blue,
    ),
    Container(
      width: 160.0,
      color: Colors.green,
    ),
    Container(
      width: 160.0,
      color: Colors.yellow,
    ),
    Container(
      width: 160.0,
      color: Colors.orange,
    ),
  ],
)
Posted by: Guest on April-18-2021
0

listview scroll direction flutter

ListView(
  // This next line does the trick.
  scrollDirection: Axis.horizontal,
  children: <Widget>[
    ....
  ],
)
Posted by: Guest on June-17-2021

Code answers related to "listview scroll flutter"

Code answers related to "Dart"

Browse Popular Code Answers by Language