【发布时间】:2020-11-09 17:21:23
【问题描述】:
我在屏幕底部的一行中有两个按钮。我想将第一个按钮保留在中心,将第二个按钮保留在最后。我怎样才能做到这一点?
这是我的代码
new Container
(
child:Row(
children:<Widget>[
new RaisedButton(
color: Colors.red,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10)),
onPressed: takescrshot,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(
'Next',
style:
TextStyle(fontSize: 23, color: Colors.white),
),
),
),
new FloatingActionButton.extended(
onPressed: () {
// Add your onPressed code here!
},
label: Text('options'),
icon: Icon(Icons.menu),
backgroundColor: Colors.pink,
),
])
)
谁能指导我?
【问题讨论】:
标签: flutter button dart flutter-layout