MyGridView<T> constructor

const MyGridView<T>(
  1. List<T> data,
  2. int crossAxisCount,
  3. double smallCellExtent,
  4. IndexedWidgetBuilder itemBuilder, {
  5. Key? key,
  6. double spaceMain = 0.0,
  7. double spaceCross = 0.0,
  8. AxisDirection? crossDirection,
  9. double childRatio = 1.0,
  10. ScrollController? scrollController,
  11. Function? onRefresh,
  12. Function? loadMore,
  13. double bigCellExtent = 0.0,
  14. bool shrinkWrap = false,
  15. List<String> processingText = const ['刷新中...', '刷新完成'],
  16. List<String> loadingText = const ['加载中...', '加载完成'],
  17. double? height,
  18. EdgeInsets? padding,
  19. 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});