MyGridView<T> constructor
const
MyGridView<T> (
- List<
T> data, - int crossAxisCount,
- double smallCellExtent,
- IndexedWidgetBuilder itemBuilder, {
- Key? key,
- double spaceMain = 0.0,
- double spaceCross = 0.0,
- AxisDirection? crossDirection,
- double childRatio = 1.0,
- ScrollController? scrollController,
- Function? onRefresh,
- Function? loadMore,
- double bigCellExtent = 0.0,
- bool shrinkWrap = false,
- List<
String> processingText = const ['刷新中...', '刷新完成'], - List<
String> loadingText = const ['加载中...', '加载完成'], - double? height,
- EdgeInsets? padding,
- Color? bgColor = Colors.transparent,
Implementation
const MyGridView(
this.data, this.crossAxisCount, this.smallCellExtent, this.itemBuilder,
{super.key,
this.spaceMain = 0.0,
this.spaceCross = 0.0,
this.crossDirection,
this.childRatio = 1.0,
this.scrollController,
this.onRefresh,
this.loadMore,
this.bigCellExtent = 0.0,
this.shrinkWrap = false,
this.processingText = const ['刷新中...', '刷新完成'],
this.loadingText = const ['加载中...', '加载完成'],
this.height,
this.padding,
this.bgColor = Colors.transparent});