Vertical Layout

There are two options available when the developer needs to lay out items vertically, depending on what is needed: the Column and the ListView.

The Column

The Column is used to create a vertical stack of widgets, and it is not scrollable. It is used to display items next to each other vertically and not to create a list of items.

How You Use It

You can make a simple Column this way:

 Column(
  children: <Widget> [
 // Widgets separated by commas
  ],
 )

Layout Widget Options

You just need to put the widgets inside the square brackets of the Widget collection literal (more on collection literals and lists in Lists and collection literals) and the widgets will be shown in a vertical stack, but there are a lot of options to customize ...

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.