PagedAlignedGridView<PageKeyType, ItemType>.extent constructor
PagedAlignedGridView<PageKeyType, ItemType>.extent ({
- PagedChildStatusBuilderDelegate<
PagingItem> ? statusBuilderDelegate, - required PagedChildBuilderDelegate<
PagingItem> builderDelegate, - required double maxCrossAxisExtent,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- bool? primary,
- ScrollPhysics? physics,
- ScrollController? scrollController,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- double? cacheExtent,
- bool showNewPageProgressIndicatorAsGridChild = true,
- bool showNewPageErrorIndicatorAsGridChild = true,
- bool showNoMoreItemsIndicatorAsGridChild = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- bool? persistent,
- required PagingDataController<
dynamic, PagingItem> pagingBuilderController, - Key? key,
Equivalent to MasonryGridView.extent
.
Implementation
PagedAlignedGridView.extent({
this.statusBuilderDelegate,
required this.builderDelegate,
required double maxCrossAxisExtent,
super.scrollDirection,
// Matches [ScrollView.reverse].
super.reverse,
// Matches [ScrollView.primary].
super.primary,
// Matches [ScrollView.physics].
super.physics,
this.scrollController,
this.mainAxisSpacing = 0.0,
this.crossAxisSpacing = 0.0,
// Matches [ScrollView.cacheExtent].
super.cacheExtent,
this.showNewPageProgressIndicatorAsGridChild = true,
this.showNewPageErrorIndicatorAsGridChild = true,
this.showNoMoreItemsIndicatorAsGridChild = true,
// Matches [ScrollView.dragStartBehavior].
super.dragStartBehavior,
// Matches [ScrollView.keyboardDismissBehavior].
super.keyboardDismissBehavior,
// Matches [ScrollView.restorationId].
super.restorationId,
// Matches [ScrollView.clipBehavior].
super.clipBehavior,
// Matches [ScrollView.shrinkWrap].
super.shrinkWrap,
// Matches [BoxScrollView.padding].
super.padding,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.persistent,
required this.pagingBuilderController,
super.key,
}) : _shrinkWrapFirstPageIndicators = shrinkWrap,
gridDelegateBuilder =
((childCount) => SliverSimpleGridDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: maxCrossAxisExtent,
)),
super(
controller: scrollController,
);