【发布时间】:2022-11-01 19:27:39
【问题描述】:
阅读颤振食谱有很多有用的例子。
【讨论】:
尝试这个:
ListView( // This next line does the trick. 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,
), ], ),
【讨论】: