Answers for "Viewports expand in the scrolling direction to fill their container. In this case, a vertical"

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

Code answers related to "Viewports expand in the scrolling direction to fill their container. In this case, a vertical"

Browse Popular Code Answers by Language