Layouts

What is the equivalent of a LinearLayout?

In Android, a LinearLayout is used to lay your widgets out
linearly—either horizontally or vertically.
In Flutter, use the Row or Column
widgets to achieve the same result.

If you notice the two code samples are identical with the exception of the
“Row” and “Column” widget. The children are the same and this feature can be
exploited to develop rich layouts that can change overtime with the same
children.

To learn more about building linear layouts,
see the community-contributed Medium article
Flutter for Android Developers: How to design LinearLayout in Flutter.

What is the equivalent of a RelativeLayout?

A RelativeLayout lays your widgets out relative to each other. In
Flutter, there are a few ways to achieve the same result.