in

Text

person

name

This resembles how Flutter prefers to build its list widgets.
Flutter doesn’t need the list items to be identifiable.
You set the number of items to display then build a widget for each item.

Test in DartPad

View on GitHub

Flutter has some caveats for lists:

The ListView widget has a builder method.
This works like the ForEach within SwiftUI’s List struct.

The itemCount parameter of the ListView sets how many items
the ListView displays.

The itemBuilder has an index parameter that will be between zero
and one less than itemCount.

The previous example returned a ListTile widget for each item.
The ListTile widget includes properties like height and font-size.
These properties help build a list. However, Flutter allows you to return
almost any widget that represents your data.

Displaying a grid