我试图使用下面的代码制作一个带有 SingleChildScrollView 和 ListView 的应用程序
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();
},
),
),
],
),
但是如果我在它周围提供 Expandable,则 listview 容纳容器不会占用可用空间。有什么办法可以实现 Container 占用可用空间?