【发布时间】:2022-11-28 04:13:41
【问题描述】:
我想知道为什么我把 ListView 的内容放在 Column 里面的 Row 里看不到? 谢谢
`
body: Center(
child: Column(
children: <Widget>[
Row(
children: <Widget>[
Flexible(
child: ListView(
children: [
Text('Text 1'),
Text('Text 2'),
],
),
),
],
),
],
),
),
`
我确实将 ListView 放在 Flexible 中,但它不起作用。
【问题讨论】:
-
您是否尝试在 ListView 中将 AxisDirection 更改为水平