微信截圖_20200318170941.png
Widget getOtherSubmitWidget() {
return Wrap(
spacing: ScreenUtil.getInstance().setWidth(32), // 主軸(水平)方向間距
runSpacing: ScreenUtil.getInstance().setWidth(16), // 縱軸(垂直)方向間距
alignment: WrapAlignment.start, //沿主軸方向居中
children: <Widget>[
new Chip(
label: new Text('Hamilton'),
),
new Chip(
label: new Text('Lafayette'),
),
new Chip(
avatar: new CircleAvatar(backgroundColor: Colors.blue, child: Text('H')),
label: new Text('Mulligan'),
),
new Chip(
avatar: new CircleAvatar(backgroundColor: Colors.blue, child: Text('J')),
label: new Text('Laurens'),
),
],
);
}