PagedAlignedGridView<PageKeyType, ItemType> constructor
const
PagedAlignedGridView<PageKeyType, ItemType> ({
- required PagedChildBuilderDelegate<
PagingItem> builderDelegate, - required SliverSimpleGridDelegateBuilder gridDelegateBuilder,
- PagedChildStatusBuilderDelegate<
PagingItem> ? statusBuilderDelegate, - 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,
- required PagingDataController<
dynamic, PagingItem> pagingBuilderController, - bool? persistent,
- Key? key,
Implementation
const PagedAlignedGridView({
required this.builderDelegate,
required this.gridDelegateBuilder,
this.statusBuilderDelegate,
// Matches [ScrollView.scrollDirection].
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,
required this.pagingBuilderController,
this.persistent,
super.key,
}) : _shrinkWrapFirstPageIndicators = shrinkWrap,
super(
controller: scrollController,
);