【发布时间】:2021-03-08 02:45:07
【问题描述】:
我在频道 beta 中使用颤振 1.12.13+hotfix.6。 我想在一个高度有限的容器中创建一个滚动,但它不能按我的意愿工作。 (在手机上很好用) 我的代码:
Container(
height: 200,
child: ListView(
shrinkWrap: true,
children: <Widget>[
Container(
height: 100,
color: Colors.purple[600],
),
Container(
height: 100,
color: Colors.purple[500],
),
Container(
height: 100,
color: Colors.purple[400],
),
Container(
height: 100,
color: Colors.purple[300],
),
],
),
);
【问题讨论】:
-
您能否具体说明,什么不起作用。滚动..?小部件本身不是显示器或尺寸限制不适用。?
标签: flutter listview scroll flutter-layout flutter-web