Create a horizontal list

Create lists with different types of items

Create a grid list

Cookbook

Lists

Create a grid list

Interactive example

In some cases, you might want to display your items as a grid rather than
a normal list of items that come one after the next.
For this task, use the GridView widget.

The simplest way to get started using grids is by using the
GridView.count() constructor,
because it allows you to specify how many rows or columns you’d like.

To visualize how GridView works,
generate a list of 100 widgets that display their index in the list.

Interactive example

Create a horizontal list

Create lists with different types of items