Padding(
padding: EdgeInsets.only(top: 10.0, bottom: 10.0),
padding: EdgeInsets.symmetric(vertical: 10.0,),
child: Text('Padding'),
),
Padding(
// Even Padding On All Sides
padding: EdgeInsets.all(10.0),
// Symetric Padding
padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 5.0),
// Different Padding For All Sides
padding: EdgeInsets.fromLTRB(1.0, 2.0, 3.0, 4.0);
child: Child
(
...
),
)
Padding(
padding: EdgeInsets.all(16.0),
padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 10.0),
padding: EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 10.0);
child: Text('Padding'),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: Text("text"),
);
const Card(
child: Padding(
padding: EdgeInsets.all(16.0),
child: Text('Hello World!'),
),
)
new Container(
margin: const EdgeInsets.only(top: 10.0),
child : new RaisedButton(
onPressed: _submit,
child: new Text('Login'),
),
flutter padding containar