Vertical viewport was given unbounded height.

100

ListView.builder(
    scrollDirection: Axis.vertical,
    shrinkWrap: true,
...
Column(
  children: <Widget>[
    ListView(
      shrinkWrap: true, // use this
    ),
  ],
)
GridView.builder(
    scrollDirection: Axis.vertical,
    shrinkWrap: true,
...
Column(
  children: <Widget>[
    Expanded( // wrap in Expanded
      child: ListView(...),
    ),
  ],
)
Column(
  children: <Widget>[
    SizedBox(
      height: 400, // fixed height
      child: ListView(...),
    ),
  ],
)

Comments

Submit
0 Comments