小编Pra*_*nay的帖子

如何在flutter中创建可滚动的行

我尝试在 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)

layout flutter

5
推荐指数
1
解决办法
5091
查看次数

标签 统计

flutter ×1

layout ×1