Flutter Single Child Layout Widgets
Layout Widgets are used that affect the positioning and presentation of their child widgets.
Earlier we mentioned that there are two main kinds of Layout Widgets:
Single-Child Layout Widgets and Multi-Child Layout Widgets.
We covered Multi-Child Layout Widgets in the previous chapter.
The purpose of this chapter is to cover Single-Child Layout Widgets.
These are Widgets that affect the layout of only one child Widget.
They are used to wrap a single child Widget and affect its presentation.
The Padding Widget is probably used most of all these and is used to affect the padding around its child widget.
Used all the time to add padding around a child Widget. It uses EdgeInset objects to specify the padding metrics around the child Widget.
Example – ‘padding’
This app allows the user click on an icon on the toolbar to cycle through the border insets.