space between row in flutter code example
Example 1: flutter how to space buttons evenly in a row
//Use mainAxisAligment: MainAxisAlignment.spaceEvenly,
//After initializing the row
new Container(
alignment: FractionalOffset.center,
child: new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
new FlatButton(
child: new Text('Don\'t have an account?', style: new TextStyle(color: Color(0xFF2E3233))),
),
new FlatButton(
child: new Text('Register.', style: new TextStyle(color: Color(0xFF84A2AF), fontWeight: FontWeight.bold),),
onPressed: moveToRegister,
)
],
),
),
Example 2: flutter vertical space between containers
Column(
children: [
Widget1(),
SizedBox(height: 10),
Widget2(),
],
),