【发布时间】:2021-11-24 14:52:38
【问题描述】:
我正在制作一个水平的 ListView,并在 ListView 中构建了一些容器。
完成之后,我想在 Web 上测试它,所以我在 ListView 中滚动它,但没有任何反应。
我也试过shift+wheel scroll,但也没有用。
如何在 Flutter Web 上测试 listView?谢谢。
ListView(
scrollDirection : Axis.horizontal,
children: <Widget>[
Container(
width: 160.0,
color: Colors.red,
),
Container(
width: 160.0,
color: Colors.blue,
),
Container(
width: 160.0,
color: Colors.green,
),
Container(
width: 160.0,
color: Colors.yellow,
),
Container(
width: 160.0,
color: Colors.orange,
),
],
),
【问题讨论】:
标签: flutter dart listview scroll