Test in DartPad

View on GitHub

The SliverGridDelegateWithFixedCrossAxisCount delegate determines
various parameters that the grid uses to lay out its components.
This includes crossAxisCount that dictates the number of items
displayed on each row.

How SwiftUI’s Grid and Flutter’s GridView differ in that Grid
requires GridRow. GridView uses the delegate to decide how the
grid should lay out its components.

Creating a scroll view

In SwiftUI, you use ScrollView to create custom scrolling
components.
The following example displays a series of PersonView instances
in a scrollable fashion.

ScrollView

VStack

alignment

leading

ForEach

persons

person

in

PersonView

person

person