我尝试在 flutter 中创建可滚动行
但在尝试了多种方法后,我面临着高度被固定或列表不滚动的问题
发布我尝试过的代码之一。
期待一种可以连续滚动并且不需要固定小部件高度的方法。
new Column(
children: [
new Container(
height: 100.0,
child: ListView(
scrollDirection: Axis.horizontal,
children: <Widget>[
new Text("text 1"),
new Text("text 2"),
new Text("text 3"),
],
),
),
],
),
Run Code Online (Sandbox Code Playgroud)