StaggeredGrid.extent constructor
StaggeredGrid.extent({})
Creates a StaggeredGrid using a custom
StaggeredGridDelegateWithMaxCrossAxisExtent
as delegate.
The grid will have tiles that each have a maximum cross-axis extent.
Implementation
StaggeredGrid.extent({
Key? key,
required double maxCrossAxisExtent,
double mainAxisSpacing = 0,
double crossAxisSpacing = 0,
AxisDirection? axisDirection,
List<Widget> children = const <Widget>[],
}) : this.custom(
key: key,
delegate: StaggeredGridDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: maxCrossAxisExtent,
),
mainAxisSpacing: mainAxisSpacing,
crossAxisSpacing: crossAxisSpacing,
axisDirection: axisDirection,
children: children,
);