主要问题是我想在行之间添加一些空格,并且该行是SingleChildScrollView
,我的小部件树:
child: SingleChildScrollView(
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Row(
// first row with 3 column
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Container(),
Container(),
Container(),
],
),
Row(
// second row also with 3 column ans so on
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Container(),
Container(),
Container(),
//Row( third row also with 3 column ans so on
//Row( fourth row also with 3 column ans so on
// ....
],
),
],
),
),
我得到以下输出:
那么如何为小部件添加更多空间SingleChildScrollView
,所以期望mainAxisAlignment:MainAxisAlignment.spaceBetween
在行之间放置一些空格,或者如何简单地在行之间添加空格?