I\'m trying to create a horizontal scrolling list of items in Flutter, and I want that list to only take up the necessary height based on its children. By design “List
List
Use ConstrainedBox to set minHeight and maxHeight
ConstrainedBox
minHeight
maxHeight
ConstrainedBox( constraints: new BoxConstraints( minHeight: 35.0, maxHeight: 160.0, ), child: new ListView( shrinkWrap: true, children: [ new ListItem(), new ListItem(), ], ), )