...

/

Use GridView to Layout a Grid

Use GridView to Layout a Grid

Learn to use GridView to place widgets in a grid when the screen is wide enough.

We'll cover the following...

When a ListView isn’t enough to display a collection of widgets on larger screens, we can use GridView. Using the GridView.extent constructor, we can declare the maximum cross size of all items in the grid. If the available cross space is greater than that, the GridView will place two or more children next to each other, constraining their cross size ...