首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在多行中显示芯片和文本,并带有抖动

在多行中显示芯片和文本,并带有抖动
EN

Stack Overflow用户
提问于 2018-06-15 21:23:40
回答 1查看 2.6K关注 0票数 2

This is wrong

I want it like this, except for the label and the aligned on the same line.

我当前的代码:

代码语言:javascript
复制
        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'))
              ],
            )
          ],
        );

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2019-04-26 06:59:57

您需要将标记1和文本1换行在一行中,所有内容都放在一列中。以及对芯片大小的一些调整。默认情况下,它会展开屏幕中的所有行。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50876538

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档