【发布时间】:2022-01-07 16:35:14
【问题描述】:
我在Row 中有很多容器,我必须将这个蓝色的容器尽可能推到最右边。你能帮我吗?这是一个代码并在下面选择。
Row(
children: [
Container(
width: 100,
height: double.infinity,
color: Colors.red,
),
SizedBox(width: 50),
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: 100,
height: 100,
color: Colors.yellow,
),
Container(
width: 100,
height: 100,
color: Colors.green,
),
],
),
Container(
width: 100,
height: double.infinity,
color: Colors.blue,
),
],
),
【问题讨论】:
标签: flutter dart flutter-layout