Search
 
SCRIPT & CODE EXAMPLE
 

DART

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: <Widget>[
              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,
              )
            ],
          ),
        ),  
Comment

PREVIOUS NEXT
Code Example
Dart :: delete shared preference flutter 
Dart :: showdialog with builder flutter 
Dart :: Flutter: Setting the height of the AppBar 
Dart :: flutter singleton 
Dart :: two dots dart 
Dart :: rotate IconButton flutter 
Dart :: flutter clear all text in textfield 
Dart :: dart absolute value 
Dart :: hide debug flag flutter 
Dart :: refresh indicator flutter 
Dart :: flutter android x 
Dart :: Floating Action Button rectangular shaped 
Dart :: android application ic_launcher dimmensions 
Dart :: generate method o dart list 
Dart :: flutter AnimatedOpacity 
Dart :: dart check if object has property 
Dart :: customize dialog flutter 
Dart :: disable flutter listtile 
Dart :: foreach loop in list in dart 
Dart :: how to create timer in flutter 
Dart :: flutter getx arguments 
Dart :: flutter column min height screen sixe 
Dart :: random in flutter int 
Dart :: destructor in dart 
Dart :: dart convert iterable to list 
Dart :: flutter snackbar action button text color 
Dart :: sliver persistent header 
Dart :: for in dart 
Dart :: column remove space between flutter 
Dart :: Flutter list of strings to one String 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =