Flutter Padding Widget
Posted on
< Previous Next >
The Padding widget is used to add padding to its child widget, which can be useful for adjusting the spacing and layout of your UI elements. You can customise the amount of padding using various properties.
Here's an example of how to use the Padding widget:
const Card(
child: Padding(
padding: EdgeInsets.all(16.0),
child: Text('Hello World!'),
),
)
some common properties of the Padding widget:
padding: The amount of padding to apply around the child widget. This can be set using an EdgeInsets object.
child: The widget to apply padding to.
< Previous Next >