📅  最后修改于: 2022-03-11 14:56:25.288000             🧑  作者: Mango
url: https://stackoverflow.com/questions/52801201/flutter-renderbox-was-not-laid-out
new Row(
children: [
Expanded(
child: SizedBox(
height: 200.0,
child: new ListView.builder(
scrollDirection: Axis.horizontal,
itemCount: products.length,
itemBuilder: (BuildContext ctxt, int index) {
return new Text(products[index]);
},
),
),
),
new IconButton(
icon: Icon(Icons.remove_circle),
onPressed: () {},
),
],
mainAxisAlignment: MainAxisAlignment.spaceBetween,
)