SliverStairedGridDelegate class
Controls the layout of tiles in a staired grid.
- Inheritance
-
- Object
- SliverGridDelegate
- SliverStairedGridDelegate
Constructors
-
SliverStairedGridDelegate({required List<
StairedGridTile> pattern, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double tileBottomSpace = 0, bool startCrossAxisDirectionReversed = false}) -
Creates a SliverStairedGridDelegate.
const
Properties
- crossAxisCount → int?
-
The number of children in the cross axis.
finalinherited
- crossAxisSpacing → double
-
The number of pixels between each child along the cross axis.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- mainAxisSpacing → double
-
The number of pixels between each child along the main axis.
finalinherited
- maxCrossAxisExtent → double?
-
The maximum extent of tiles in the cross axis.
finalinherited
-
pattern
→ List<
StairedGridTile> -
The tiles representing the pattern to be repeated.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startCrossAxisDirectionReversed → bool
-
Indicates whether we should start to place the tile in the reverse cross
axis direction.
final
- tileBottomSpace → double
-
The number of logical pixels of the space below each tile.
final
- tileCount → int
-
The number of tiles in the pattern.
finalinherited
Methods
-
getGeometries(
SliverConstraints constraints, int crossAxisCount) → SliverPatternGridGeometries - Returns the geometries of each tiles in the pattern.
-
getLayout(
SliverConstraints constraints) → _SliverPatternGridLayout -
Returns information about the size and position of the tiles in the grid.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldRelayout(
covariant SliverStairedGridDelegate oldDelegate) → bool - Override this method to return true when the children need to be laid out.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited