flutter column padding code example
Example 1: how to add padding flutter
Padding(
padding: EdgeInsets.all(10.0),
padding: EdgeInsets.symmetric(vertical: 10.0, horizontal: 5.0),
padding: EdgeInsets.fromLTRB(1.0, 2.0, 3.0, 4.0);
child: Child
(
...
),
)
Example 2: flutter column padding
Padding(
padding: const EdgeInsets.all(8.0),
child: Text("text"),
);
Example 3: flutter padding
const Card(
child: Padding(
padding: EdgeInsets.all(16.0),
child: Text('Hello World!'),
),
)
Example 4: padding flutter top
new Container(
margin: const EdgeInsets.only(top: 10.0),
child : new RaisedButton(
onPressed: _submit,
child: new Text('Login'),
),
Example 5: column each child padding
Wrap(
spacing: 20,
runSpacing: 20,
children: <Widget>[
Text('child 1'),
Text('child 2')
]
)