spacer widget in flutter code example
Example 1: flutter widget for space
SizedBox widget can be use in between two widget to add space between two widget
and it makes code more readable than padding widget.
Column(
children: <Widget>[
Widget1(),
SizedBox(height: 10),
Widget2(),
],
),
Example 2: flutter vertical space between containers
Column(
children: <Widget>[
Widget1(),
SizedBox(height: 10),
Widget2(),
],
),