我试着让下面两个凸起的按钮均匀地填满可用宽度。
我的专栏:
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: () {},
),
)
有一个差距
发布于 2019-03-21 06:52:18
将"crossAxisAlignment“属性添加到包含两个按钮的行
crossAxisAlignment: CrossAxisAlignment.stretch
https://stackoverflow.com/questions/55270129
复制相似问题