颤振鼠标滚动在水平列表中不起作用
flutter mouse scrolling is not work in horizontal list
我正在制作一个水平的 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,
),
],
),
我在 chrome 中使用调试模式 (F12) 解决了这个问题。
您可以使用切换设备工具栏 (Ctrl +Shift+M),并通过使用它,
可以模拟触摸屏
谢谢!
我正在制作一个水平的 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,
),
],
),
我在 chrome 中使用调试模式 (F12) 解决了这个问题。
您可以使用切换设备工具栏 (Ctrl +Shift+M),并通过使用它,
可以模拟触摸屏
谢谢!