UGridView constructor
const
UGridView({
- required IndexedWidgetBuilder itemBuilder,
- required int itemCount,
- Key? key,
- int? crossAxisCount,
- double? maxCrossAxisExtent,
- double mainAxisSpacing = 8.0,
- double crossAxisSpacing = 8.0,
- double childAspectRatio = 1.0,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- ScrollController? scrollController,
- bool? primary,
- bool reverse = false,
- Axis scrollDirection = Axis.vertical,
- EdgeInsetsGeometry? margin,
- double? opacity,
- bool visible = true,
- String? tooltip,
- String? heroTag,
- BoxFit? fit,
- AlignmentGeometry fitAlignment = Alignment.center,
- double? scale,
- double? rotate,
- Offset? translate,
- bool center = false,
- bool safeArea = false,
- int? expanded,
- int? flexible,
- bool positioned = false,
- double? left,
- double? top,
- double? right,
- double? bottom,
- double? positionedWidth,
- double? positionedHeight,
Implementation
const UGridView({
required this.itemBuilder,
required this.itemCount,
super.key,
this.crossAxisCount,
this.maxCrossAxisExtent,
this.mainAxisSpacing = 8.0,
this.crossAxisSpacing = 8.0,
this.childAspectRatio = 1.0,
this.physics,
this.shrinkWrap = false,
this.padding,
this.scrollController,
this.primary,
this.reverse = false,
this.scrollDirection = Axis.vertical,
this.margin,
this.opacity,
this.visible = true,
this.tooltip,
this.heroTag,
this.fit,
this.fitAlignment = Alignment.center,
this.scale,
this.rotate,
this.translate,
this.center = false,
this.safeArea = false,
this.expanded,
this.flexible,
this.positioned = false,
this.left,
this.top,
this.right,
this.bottom,
this.positionedWidth,
this.positionedHeight,
});