horizontal viewport was given unbounded height. flutter code example
Example: vertical viewport was given unbounded height listview flutter
Use shrinkWrap: true in ListView.
Column(
children: <Widget>[
ListView(
shrinkWrap: true, // use this
),
],
)
----------------------------
2 . Wrap ListView in Expanded
Column(
children: <Widget>[
Expanded( // wrap in Expanded
child: ListView(...),
),
],
)