Flutter & Dart · Component
GridView
GridView is a scrollable two-dimensional array of widgets. Use count or extent for common layouts, builder for large or infinite data, and a custom delegate for other arrangements.
Last updated
Syntax
GridView.builder({
Key? key,
Axis scrollDirection = Axis.vertical,
bool reverse = false,
ScrollController? controller,
bool? primary,
ScrollPhysics? physics,
bool shrinkWrap = false,
EdgeInsetsGeometry? padding,
required SliverGridDelegate gridDelegate,
required NullableIndexedWidgetBuilder itemBuilder,
int? itemCount,
})In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
SliverGridDelegateWithFixedCrossAxisCountSliverGridDelegateWithMaxCrossAxisExtentCustomScrollViewSliverGridListViewScrollControllerPageStorageKey