首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >扩展的上升按钮颤动

扩展的上升按钮颤动
EN

Stack Overflow用户
提问于 2019-03-21 05:01:34
回答 1查看 102关注 0票数 2

我试着让下面两个凸起的按钮均匀地填满可用宽度。

我的专栏:

代码语言:javascript
复制
            Padding(
              padding: const EdgeInsets.only(bottom:18.0),
              child: Text(
                'Which language Do you prefer',
                style: TextStyle(
                  color: Colors.white,
                ),
              ),
            ),
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceEvenly,
              children: <Widget>[
                ButtonTheme(
                  minWidth: 150.0,
                  height: 50.0,
                  child: RaisedButton(
                    color: Theme.of(context).primaryColorLight,
                    child: Text('French'),
                    onPressed: () {},
                  ),
                ),
                ButtonTheme(
                  minWidth: 150.0,
                  height: 50.0,
                  child: RaisedButton(
                    color: Theme.of(context).primaryColorLight,
                    child: Text('English'),
                    onPressed: () {},
                  ),
                )

有一个差距

EN

回答 1

Stack Overflow用户

发布于 2019-03-21 06:52:18

将"crossAxisAlignment“属性添加到包含两个按钮的行

代码语言:javascript
复制
crossAxisAlignment: CrossAxisAlignment.stretch
票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55270129

复制
相关文章

相似问题

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