PagedAlignedGridView<PageKeyType, ItemType>.extent constructor

PagedAlignedGridView<PageKeyType, ItemType>.extent({
  1. PagedChildStatusBuilderDelegate<PagingItem>? statusBuilderDelegate,
  2. required PagedChildBuilderDelegate<PagingItem> builderDelegate,
  3. required double maxCrossAxisExtent,
  4. Axis scrollDirection = Axis.vertical,
  5. bool reverse = false,
  6. bool? primary,
  7. ScrollPhysics? physics,
  8. ScrollController? scrollController,
  9. double mainAxisSpacing = 0.0,
  10. double crossAxisSpacing = 0.0,
  11. double? cacheExtent,
  12. bool showNewPageProgressIndicatorAsGridChild = true,
  13. bool showNewPageErrorIndicatorAsGridChild = true,
  14. bool showNoMoreItemsIndicatorAsGridChild = true,
  15. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  16. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  17. String? restorationId,
  18. Clip clipBehavior = Clip.hardEdge,
  19. bool shrinkWrap = false,
  20. EdgeInsetsGeometry? padding,
  21. bool addAutomaticKeepAlives = true,
  22. bool addRepaintBoundaries = true,
  23. bool addSemanticIndexes = true,
  24. bool? persistent,
  25. required PagingDataController<dynamic, PagingItem> pagingBuilderController,
  26. 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,
      );