【发布时间】:2021-07-13 08:48:56
【问题描述】:
我像这段代码一样在图像下填充按钮。
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image(
image: AssetImage('images/123.jpg'),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
new Padding(
padding: const EdgeInsets.symmetric(
vertical: 50.0, horizontal: 0),
),
RaisedButton(
onPressed: () {},
child: Text('abc'),
),
RaisedButton(
onPressed: () {},
child: Text('acb'),
),
])
],
),
),
结果显示顶部和左侧的按钮填充。我只想填充顶部。如何解决?
【问题讨论】: