Answers for "Flutter Vertical viewport was given unbounded height."

4

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(...),
    ),
  ],
  )
Posted by: Guest on August-12-2020
3

Vertical viewport was given unbounded height.

ListView.builder(
    scrollDirection: Axis.vertical,
    shrinkWrap: true,
...
Posted by: Guest on August-26-2020
1

Vertical viewport was given unbounded height.

Column(
  children: <Widget>[
    ListView(
      shrinkWrap: true, // use this
    ),
  ],
)
Posted by: Guest on August-26-2020
0

Vertical viewport was given unbounded height.

Column(
  children: <Widget>[
    SizedBox(
      height: 400, // fixed height
      child: ListView(...),
    ),
  ],
)
Posted by: Guest on August-26-2020
0

flutter Vertical viewport was given unbounded height listview.builder

ListView.builder(
   shrinkWrap: true,
   physics: ScrollPhysics()
),
Posted by: Guest on November-05-2021

Code answers related to "Flutter Vertical viewport was given unbounded height."

Browse Popular Code Answers by Language