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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.