StaggeredGridConfiguration class
Specifies how a staggered grid is configured.
- Annotations
Constructors
- StaggeredGridConfiguration({required int crossAxisCount, required IndexedStaggeredTileBuilder staggeredTileBuilder, required double cellExtent, required double mainAxisSpacing, required double crossAxisSpacing, required bool reverseCrossAxis, required int? staggeredTileCount, int mainAxisOffsetsCacheSize = 3})
-
Creates an object that holds the configuration of a staggered grid.
const
Properties
- cellExtent → double
-
The number of pixels from the leading edge of one cell to the trailing
edge of the same cell in both axis.
final
- cellStride → double
-
final
- crossAxisCount → int
-
The maximum 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
- mainAxisOffsetsCacheSize → int
-
The number of pages necessary to cache a mainAxisOffsets value.
final
- mainAxisSpacing → double
-
The number of logical pixels between each child along the main axis.
final
- reverseCrossAxis → bool
-
Whether the children should be placed in the opposite order of increasing
coordinates in the cross axis.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staggeredTileBuilder → IndexedStaggeredTileBuilder
-
Called to get the tile at the specified index for the
SliverGridStaggeredTileLayout
.final - staggeredTileCount → int?
-
The total number of tiles this delegate can provide.
final
Methods
-
generateMainAxisOffsets(
) → List< double> -
getStaggeredTile(
int index) → StaggeredTile? - Gets a normalized tile for the given index.
-
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