通过Flutter Spacer 灵活配置 Row/Column
实际上内部封装了Expand组件,可能自动调整组件位置。
这个可以手动地调整每行或第列 各个控制之间的距离
Row(
children: const <Widget>[
Text('Begin'),
Spacer(), // Defaults to a flex of one.
Text('Middle'),
// Gives twice the space between Middle and End than Begin and Middle.
Spacer(flex: 2),
Text('End'),
],
)