⌂
›
Reference
›
GridView
GridView
Display repeated content in a tiled layout.
Example
grid_view(
runs_count: 2,
spacing: 8,
run_spacing: 8,
children: [
text(value: "A"),
text(value: "B"),
text(value: "C"),
text(value: "D")
]
)
Common properties
runs_countchildrenspacingrun_spacingexpand
Usage
grid_view(
runs_count: 3,
spacing: 12,
children: items.map { |item| text(value: item[:name]) }
)
Notes
- Use
children:for the tiles, consistent withcolumn,row, and
list_view.