January 2020
Intermediate to advanced
368 pages
12h 45m
English
Like everything else in Flutter, these are handled with widgets. You can add padding to any widget by wrapping it in Padding:
Padding(
padding: const EdgeInsets.all(16.0), 1
child: Text("Wrap me up"),
),
You can also add padding with a Container. The Container widget is a “convenience” widget that provides a whole slew of properties that you would otherwise get from individual widgets (like the padding widget), which solely add single properties to their children. You will likely get a lot of use out of the Container widget. It can be used to set padding, margin, ...
Read now
Unlock full access