SliverSimpleGridDelegateWithFixedCrossAxisCount class

Creates grid layouts with a fixed number of tiles in the cross axis.

For example, if the grid is vertical, this delegate will create a layout with a fixed number of columns. If the grid is horizontal, this delegate will create a layout with a fixed number of rows.

This delegate creates grids with equally sized and spaced tiles.

Inheritance

Constructors

SliverSimpleGridDelegateWithFixedCrossAxisCount({required int crossAxisCount})
Creates a delegate that makes grid layouts with a fixed number of tiles in the cross axis.
const

Properties

crossAxisCount int
The number of children in the cross axis.
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

getCrossAxisCount(SliverConstraints constraints, double crossAxisSpacing) int
Returns the number of children than can be layout in the cross axis.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRelayout(covariant SliverSimpleGridDelegateWithFixedCrossAxisCount oldDelegate) bool
Override this method to return true when the children need to be laid out.
override
toString() String
A string representation of this object.
inherited

Operators

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