android - 如何启用在 TabBarView 父级中禁用的 Listview 滚动
问题描述
ListView 类是一个可滚动的小部件列表。我在 ListView 类的父级中禁用了水平滚动,并在子级(ListView 类)中受到此代码的影响:
new Stack(
...,
children: <Widget>[
...,
new TabBarView(
...,
children: icons.map((Icon icon) {
...,
return new Container(
...,
child:new Card(
...,
child: new Stack(
...,
children: <Widget>[
...,
new Container(
...,
new ListView(// enable scrolling here
...
children: <Widget>[
...
],
),
),
],
),
),
),
}).toList()
),
new GestureDetector(
behavior: HitTestBehavior.opaque,
),
],
),
现在我想在我在代码中注释的内部 ListView 类中使用滚动。
解决方案
推荐阅读
- python - 如何用beautifulsoup获得所有线条
- javascript - 如何在 JavaScript 中从 Excel 文件中读取日期
- groovy - 是否有标准方法来记录 groovy 地图属性?
- python - 使用以下代码在 python 中进行慢输入
- windows - 如何批量循环数组并移动文件
- python - 从 PyQt5 中的循环同时更新和显示数据
- java - 为什么 JDBI 中的查询可以关闭?
- c# - 在特定毫秒内安排作业计划
- docker - Docker绑定挂载权限-意外挂载为root:root
- sql - 根据 SQL Server 中的不同表将数据添加到新列