我只是开始颤抖,而不是要如何在这2个FloatingActionButton之间留出空隙
Widget abcde = Container(
child: new Row(
children: <Widget>[
Expanded(
child: new Container(
margin: new EdgeInsets.symmetric(horizontal: 20.0),
child: new Row(
children: <Widget>[
FloatingActionButton(
backgroundColor: Colors.blue,
onPressed: (){},
child: Icon(Icons.call)),
FloatingActionButton(
backgroundColor: Colors.blue,
onPressed: (){},
child: Icon(Icons.call)),
],
),
)
),
],
),
);
FloatingActionButton(
backgroundColor: Colors.blue,
onPressed: () {},
child: Icon(Icons.call)),
SizedBox(
width: 10,
),
FloatingActionButton(
backgroundColor: Colors.blue,
onPressed: () {},
child: Icon(Icons.call)),
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
小部件添加Row
或其他间距选项。FloatingActionButtons
包装Container
并添加边距/边距,或直接用Padding
/ Margin
小部件包装。Container
/SizedBox
/ Spacer
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
//Fab 1,
//Fab 2
]
),