SuperGridView<T>.count constructor
SuperGridView<T>.count ({
- Key? key,
- required SuperScrollController<
T> controller, - required SuperItemBuilder<
T> itemBuilder, - required int crossAxisCount,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- double childAspectRatio = 1.0,
- EdgeInsetsGeometry? padding,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- bool reverse = false,
- VoidCallback? onRefresh,
- ScrollController? scrollController,
- Widget? newPageProgressIndicator,
- Widget? firstPageProgressIndicator,
- Widget? firstPageErrorIndicator,
- Widget? newPageErrorIndicator,
- Widget? noItemsFoundIndicator,
- Widget? noMoreItemsIndicator,
Implementation
SuperGridView.count({
super.key,
required this.controller,
required this.itemBuilder,
required int crossAxisCount,
double mainAxisSpacing = 0.0,
double crossAxisSpacing = 0.0,
double childAspectRatio = 1.0,
this.padding,
this.physics,
this.shrinkWrap = false,
this.reverse = false,
this.onRefresh,
this.scrollController,
this.newPageProgressIndicator,
this.firstPageProgressIndicator,
this.firstPageErrorIndicator,
this.newPageErrorIndicator,
this.noItemsFoundIndicator,
this.noMoreItemsIndicator,
}) : gridDelegate = SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: crossAxisCount,
mainAxisSpacing: mainAxisSpacing,
crossAxisSpacing: crossAxisSpacing,
childAspectRatio: childAspectRatio,
);