I have used a flutter GridView
inside a ListView
, both are vertical scrolling:
body: ListView(
children: <Widget>[
GridView.count(
crossAxisCount: 3,
physics: NeverScrollableScrollPhysics(), // to disable GridView's scrolling
shrinkWrap: true, // You won't see infinite size error
children: <Widget>[
Container(
height: 24,
color: Colors.green,
),
Container(
height: 24,
color: Colors.blue,
),
],
),
// ...... other list children.
],
),
You can use same approach for flutter horizontal ListView
/GridView
inside another ListView
.