Padding

Padding is used to set a margin

A padding is defined like this:

 // to set a specific value for side
 padding: const EdgeInsets.fromLTRB(1.0, 30.0, 1.0, 1.0),
 
 // to set the same value to all the sides
 padding: EdgeInsets.all(16.0)
 
 // it can be defined like a widget like this:
 Padding()

Last updated