InfiniteGridView constructor
const
InfiniteGridView({
- required Function nextData,
- required Widget itemBuilder(),
- required int itemCount,
- required SliverGridDelegate gridDelegate,
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- int? semanticChildCount,
- double scrollThreshold = 300,
- bool hasNext = false,
- Widget? loadingWidget,
GridView that once the bottom is reach call nextData to load more element until hasNext is false Use loadingWidget to have a custom loading widget
Implementation
const InfiniteGridView({
required this.nextData,
required this.itemBuilder,
required this.itemCount,
required this.gridDelegate,
Key? key,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.shrinkWrap = false,
this.padding,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.cacheExtent,
this.semanticChildCount,
this.scrollThreshold = 300,
this.hasNext = false,
this.loadingWidget,
}) : super(key: key);