I have a page with a ListView.builder and when I resize the window the ListView shrinks as expected and the Items are scrollable.
But I want it only to shrink to a minimum height so that some items are always showing, but at the moment it continues to shrink until you can't see anything.
I have tried wrapping it in a ConstrainedBox but it doesn't change anything. Using the following the expected behaviour is the Space occupied by the list on the screen will shrink as the window is resized but stop shrinking when it is 200 high.
What have I missed?
Thanks
ConstrainedBox(
constraints: const BoxConstraints(minHeight: 200),
child: ListView.builder(
itemCount: controller.items.length,
itemBuilder: (context, index) {
return ListTile(title: Text(controller.items[index].title.value));
}
),
)