PagedMasonryGridView<PageKeyType, ItemType> constructor
const
PagedMasonryGridView<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, - Key? key,
Implementation
const PagedMasonryGridView({
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,
super.key,
}) : _shrinkWrapFirstPageIndicators = shrinkWrap,
super(
controller: scrollController,
);