Containers
Displaying a single widget onscreen is not a good way to organize a UI. We will usually lay out a list of widgets that are organized in a specific way; to do so, we use container widgets.
The most common containers in Flutter are the Row and Column widgets. They have a children property that expects a list of widgets to be displayed in a specific direction (that is, a horizontal list for Row, or a vertical list for Column).
Another widely used widget is the Stack widget, which organizes children in layers, where one child can overlap another child partially or totally.
If you have developed some kind of mobile application before, you may have already used lists and grids. Flutter provides classes for both of them: namely, the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access