GridItemPickerLayout class

A grid-based layout for item pickers.

Displays items in a scrollable grid using GridView.builder. The number of columns can be configured via crossAxisCount.

Example:

GridItemPickerLayout(crossAxisCount: 3)
Inheritance

Constructors

GridItemPickerLayout({int crossAxisCount = 4})
Creates a GridItemPickerLayout.
const

Properties

crossAxisCount int
Number of columns in the grid.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context, ItemChildDelegate items, ItemPickerBuilder builder) Widget
Builds the widget for displaying items.
override
call({int crossAxisCount = 4}) ItemPickerLayout
Creates a copy of this layout with a different column count.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited