I want it like this, except for the label and the aligned on the same line.
我当前的代码:
return new Column(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
new Wrap(
spacing: 8.0,
runSpacing: 4.0,
direction: Axis.horizontal,
children: <Widget>[
new Tag(tagLabel: 'Chip1'),
new Text('This is a very, very long text that should wrap. The second line should be shown below the first chip!'),
new Chip(label: new Text('Chip2')),
new Chip(label: new Text('Chip3')),
new Chip(label: new Text('Chip4')),
new Chip(label: new Text('Chip5')),
new Chip(label: new Text('Chip6'))
],
)
],
);有什么想法吗?
发布于 2019-04-26 06:59:57
您需要将标记1和文本1换行在一行中,所有内容都放在一列中。以及对芯片大小的一些调整。默认情况下,它会展开屏幕中的所有行。
https://stackoverflow.com/questions/50876538
复制相似问题