I was trying to make an app with SingleChildScrollView and ListView using below code
SingleChildScrollView(
child: Column(
children: [
maintile(),
Container(
padding: EdgeInsets.all(15.0),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topRight: Radius.circular(75.0),
),
),
child: ListView.builder(
shrinkWrap: true,
primary: false,
itemCount: items.length,
itemBuilder: (context, index) {
return listitem();
},
),
),
],
),
but the listview holding container does not take available space If I provide Expandable around it. is there any way to achieve Container take available space?
Final Code: