GridView
The GridView widget displays a scrollable 2D array of widgets. It is useful for creating photo galleries, dashboards, and other grid-based layouts.
Data Source
The GridView widget uses a Data Source
to dynamically generate its content. You can input either static data or dynamic data using expressions.
Properties
Controller
An expression to control the scroll position of the grid.
Allow Scroll
If true
, the grid will be scrollable.
Shrink Wrap
If true
, the extent of the scroll view in the scroll direction is determined by the size of the children.
Cross Axis Count
The number of columns in the grid.
Cross Axis Spacing
The amount of space between columns.
Main Axis Spacing
The amount of space between rows.
Child Aspect Ratio
The ratio of the width to the height of each child.
Default Properties
The GridView widget supports all Default Properties.
Last updated