XSliverGridDelegate class

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

This delegate creates grids with un equal or equal sized tiles.

Inheritance

Constructors

XSliverGridDelegate({required int crossAxisCount, required double bigCellExtent, required double smallCellExtent, double mainAxisSpacing = 0.0, double crossAxisSpacing = 0.0, bool isFirstCellBig = true})
Creates a delegate that makes grid layouts with a fixed number of tiles in the cross axis.

Properties

bigCellExtent → double
Height of big cell.
final
crossAxisCount → int
The number of children in the cross axis.
final
crossAxisSpacing → double
The number of logical pixels between each child along the cross axis.
final
hashCode → int
The hash code for this object.
no setterinherited
isFirstCellBig → bool
If true first cell will be big otherwise small.
final
mainAxisSpacing → double
The number of logical pixels between each child along the main axis.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
smallCellExtent → double
Height of small cell.
final

Methods

getLayout(SliverConstraints constraints) → SliverGridLayout
Returns information about the size and position of the tiles in the grid.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRelayout(covariant XSliverGridDelegate 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