GridViewBuilder constructor
const
GridViewBuilder({
- Key? key,
- required double ratio,
- required int crossAxisCount,
- required int itemCount,
- required Widget builder(
- BuildContext context,
- int index
- EdgeInsetsGeometry? padding,
- bool? shrinkWrap,
- ScrollPhysics? physics,
- bool? reverse,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- ScrollController? controller,
Constructor for GridViewBuilder
- key: An optional key to identify the widget.
- ratio: The aspect ratio of items in the GridView.
- crossAxisCount: The number of items to be displayed in each row.
- itemCount: The total number of items in the GridView.
- builder: A function that builds individual items based on the index.
Implementation
const GridViewBuilder({
Key? key,
required this.ratio,
required this.crossAxisCount,
required this.itemCount,
required this.builder,
this.padding,
this.shrinkWrap,
this.physics,
this.reverse,
this.keyboardDismissBehavior, this.controller,
}) : super(key: key);