I try to lay out some widgets including one ListView. I want the ListView fills the available space. If the ListView content is to bigger it should be scrollable.
At the moment the ListView gets too big and the widgets growing out of the screen.
...
body: Column(mainAxisAlignment: MainAxisAlignment.start, children: [
Card(
child: Padding(
padding: const EdgeInsets.all(2.0),
child: Column(children: [
Text('Text'),
ListView.builder(
shrinkWrap: true,
physics: ClampingScrollPhysics(),
itemBuilder: (BuildContext context, int index) => actionWidgetList[index],
itemCount: actionList.length,
),
]),
),
),
rangeInitialized
? Container(
alignment: Alignment.bottomCenter,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.width,
child: another.widget,
)
: SizedBox(),
]),