【发布时间】:2018-09-03 12:49:27
【问题描述】:
我正在我的 Flutter 应用程序中测试芯片。 我已经在 Row 中添加了这些筹码。
但是当没有。筹码增加,应用显示黄条提示
右溢出 200 像素
我只想显示适合第一排的那些筹码,所有剩余的筹码都应该显示在它的下方。
我的sn-p:
class ChipsTesting extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Padding(
padding: new EdgeInsets.all(30.0),
child: new Row(
children: <Widget>[
new Chip(
label: new Text('Chips11')
),new Chip(
label: new Text('Chips12')
),new Chip(
label: new Text('Chips13')
),new Chip(
label: new Text('Chips14')
),new Chip(
label: new Text('Chips15')
),new Chip(
label: new Text('Chips16')
)
],
),
),
);
}
}
【问题讨论】: