GridView constructor
const
GridView({
- Key? key,
- List? items,
- required SliverGridDelegate gridDelegate,
- required IndexedWidgetBuilder itemBuilder,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- bool primary = false,
- Axis scrollDirection = Axis.vertical,
- ScrollController? controller,
- bool reverse = false,
- Clip clipBehavior = Clip.hardEdge,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- int? semanticChildCount,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool keyboardDismissBehavior = false,
- String? restorationId,
- int? itemCount,
Implementation
const GridView({
super.key,
this.items,
required this.gridDelegate,
required this.itemBuilder,
this.padding = const EdgeInsets.all(8.0),
this.physics,
this.shrinkWrap = false,
this.primary = false,
this.scrollDirection = Axis.vertical,
this.controller,
this.reverse = false,
this.clipBehavior = Clip.hardEdge,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.semanticChildCount,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = false,
this.restorationId,
this.itemCount,
});