I have a widget tree like this:
SingleChildScrollView
Column
Container
ListView(or GridView)
the problem is that when my wid
As suggested by other answers, you can do that by setting shrinkWrap: true, physics: NeverScrollableScrollPhysics()
, but building a shrinkwrapped listview is more expensive than building a normal listview, I think it will be a good idea to use a map() on the list.
Column(
children: [
...itemList.map((item) {
return Text(item);
}).toList(),
],
),