Flutter Margin Top Code Example


Example 1: flutter margins

Container ( 	// Even Margin On All Sides     margin: EdgeInsets.all(10.0),     // Symetric Margin     margin: EdgeInsets.symmetric(vertical: 10.0, horizontal: 5.0),     // Different Margin For All Sides     margin: EdgeInsets.fromLTRB(1.0, 2.0, 3.0, 4.0);          child: Child     (     	...     ), )

Example 2: flutter container margin

@override Widget build(BuildContext context) {   return Scaffold(     backgroundColor: Colors.white,     body: Container(       margin: const EdgeInsets.only(left: 20.0, right: 20.0),       child: Container(),     ),   ); }

Example 3: padding flutter top

new Container(     margin: const EdgeInsets.only(top: 10.0),     child : new RaisedButton(                 onPressed: _submit,                 child: new Text('Login'),               ),

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable