SliverStaggeredGridDelegate class abstract

Creates staggered grid layouts.

This delegate creates grids with variable sized but equally spaced tiles.

See also:

Implementers

Constructors

SliverStaggeredGridDelegate({required IndexedStaggeredTileBuilder staggeredTileBuilder, double mainAxisSpacing = 0, double crossAxisSpacing = 0, int? staggeredTileCount})
Creates a delegate that makes staggered grid layouts
const

Properties

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
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
staggeredTileBuilder IndexedStaggeredTileBuilder
Called to get the tile at the specified index for the RenderSliverStaggeredGrid.
final
staggeredTileCount int?
The total number of tiles this delegate can provide.
final

Methods

getConfiguration(SliverConstraints constraints) StaggeredGridConfiguration
Returns information about the staggered grid configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRelayout(SliverStaggeredGridDelegate 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