Horizontal Layout: The Row

The Row lays out widgets side by side, and is very similar to a Column, with the difference being that the main axis and cross axis are the other way around.

How You Use It and What You Use It For

You can use a Row simply the following way:

 Column(
  children: <Widget> [
  Text(​"This will be the left side"​),
  Text(​"This will be the right side"​)
  ],
 )

The options are the same as the Column’s (with the cross axis becoming the vertical and the main axis becoming the horizontal) and you can find them in Layout Widget Options.

Where You’ll Use the Row Together with Other Widgets

Rows and Columns make for great bonding widgets: with them you can make your complex widgets made of simple elements.

For example, a ...

Get Programming Flutter now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.