ResponsiveGridDelegate class

A SliverGridDelegate with item sizing control.

Set a fixed item size by setting the crossAxisExtent. Set the maximum item size with maxCrossAxisExtent. Set the minimum item size with minCrossAxisExtent. One and only one cross axis extent is required.

Inheritance

Constructors

ResponsiveGridDelegate({double? crossAxisExtent, double? maxCrossAxisExtent, double? minCrossAxisExtent, double mainAxisSpacing = 0, double crossAxisSpacing = 0, double childAspectRatio = 1})
const

Properties

childAspectRatio → double
final
crossAxisExtent → double?
Fixed item size.
final
crossAxisSpacing → double
final
hashCode → int
The hash code for this object.
no setterinherited
mainAxisSpacing → double
final
maxCrossAxisExtent → double?
Maximum item size.
final
minCrossAxisExtent → double?
Minimum item size.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 ResponsiveGridDelegate 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