Container怎么布局,不知道W&H
only know margin left&right 15.0 top:20.0 bottom:30.0
Scaffold->Container->Column->**Container**
像这样:
谢谢
最佳答案
这应该做你想做的:
body: Column(
children: [
Expanded(
child: Container(
padding: EdgeInsets.only(
left: 15.0,
right: 15.0,
top: 20.0,
bottom: 30.0,
),
child: Center(
child: Text('child'),
),
),
),
],
),
关于flutter - 如何布置容器,我不知道 W&H,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51440857/