Inheritance
System.Object
GridView
public class GridView : BoxScrollView
Constructors
Declaration
public GridView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, SliverGridDelegate gridDelegate = null, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ), List<Widget> children = null)
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
SliverGridDelegate |
gridDelegate |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Nullable<System.Single> |
cacheExtent |
|
System.Collections.Generic.List<Widget> |
children |
|
Declaration
public GridView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, SliverGridDelegate gridDelegate = null, IndexedWidgetBuilder itemBuilder = null, int? itemCount = default(int? ), bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ))
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
SliverGridDelegate |
gridDelegate |
|
IndexedWidgetBuilder |
itemBuilder |
|
System.Nullable<System.Int32> |
itemCount |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Nullable<System.Single> |
cacheExtent |
|
Declaration
public GridView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, SliverGridDelegate gridDelegate = null, SliverChildDelegate childrenDelegate = null, float? cacheExtent = default(float? ), DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Declaration
public GridView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, int? crossAxisCount = default(int? ), float mainAxisSpacing = 0F, float crossAxisSpacing = 0F, float childAspectRatio = 1F, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ), List<Widget> children = null, DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
System.Nullable<System.Int32> |
crossAxisCount |
|
System.Single |
mainAxisSpacing |
|
System.Single |
crossAxisSpacing |
|
System.Single |
childAspectRatio |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Nullable<System.Single> |
cacheExtent |
|
System.Collections.Generic.List<Widget> |
children |
|
DragStartBehavior |
dragStartBehavior |
|
Declaration
public GridView(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, float? maxCrossAxisExtent = default(float? ), float mainAxisSpacing = 0F, float crossAxisSpacing = 0F, float childAspectRatio = 1F, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, bool addSemanticIndexes = true, List<Widget> children = null, DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
System.Nullable<System.Single> |
maxCrossAxisExtent |
|
System.Single |
mainAxisSpacing |
|
System.Single |
crossAxisSpacing |
|
System.Single |
childAspectRatio |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Boolean |
addSemanticIndexes |
|
System.Collections.Generic.List<Widget> |
children |
|
DragStartBehavior |
dragStartBehavior |
|
Fields
Declaration
public readonly SliverChildDelegate childrenDelegate
Field Value
Declaration
public readonly SliverGridDelegate gridDelegate
Field Value
Methods
buildChildLayout(BuildContext)
Declaration
protected override Widget buildChildLayout(BuildContext context)
Parameters
Returns
Overrides
Declaration
public static GridView builder(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, SliverGridDelegate gridDelegate = null, IndexedWidgetBuilder itemBuilder = null, int? itemCount = default(int? ), bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ))
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
SliverGridDelegate |
gridDelegate |
|
IndexedWidgetBuilder |
itemBuilder |
|
System.Nullable<System.Int32> |
itemCount |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Nullable<System.Single> |
cacheExtent |
|
Returns
Declaration
public static GridView count(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, int? crossAxisCount = default(int? ), float mainAxisSpacing = 0F, float crossAxisSpacing = 0F, float childAspectRatio = 1F, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, float? cacheExtent = default(float? ), List<Widget> children = null, DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
System.Nullable<System.Int32> |
crossAxisCount |
|
System.Single |
mainAxisSpacing |
|
System.Single |
crossAxisSpacing |
|
System.Single |
childAspectRatio |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Nullable<System.Single> |
cacheExtent |
|
System.Collections.Generic.List<Widget> |
children |
|
DragStartBehavior |
dragStartBehavior |
|
Returns
Declaration
public static GridView custom(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, SliverGridDelegate gridDelegate = null, SliverChildDelegate childrenDelegate = null, float? cacheExtent = default(float? ), DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Returns
Declaration
public static GridView extent(Key key = null, Axis scrollDirection = Axis.vertical, bool reverse = false, ScrollController controller = null, bool? primary = default(bool? ), ScrollPhysics physics = null, bool shrinkWrap = false, EdgeInsets padding = null, float? maxCrossAxisExtent = default(float? ), float mainAxisSpacing = 0F, float crossAxisSpacing = 0F, float childAspectRatio = 1F, bool addAutomaticKeepAlives = true, bool addRepaintBoundaries = true, List<Widget> children = null, DragStartBehavior dragStartBehavior = DragStartBehavior.down)
Parameters
Type |
Name |
Description |
Key |
key |
|
Axis |
scrollDirection |
|
System.Boolean |
reverse |
|
ScrollController |
controller |
|
System.Nullable<System.Boolean> |
primary |
|
ScrollPhysics |
physics |
|
System.Boolean |
shrinkWrap |
|
EdgeInsets |
padding |
|
System.Nullable<System.Single> |
maxCrossAxisExtent |
|
System.Single |
mainAxisSpacing |
|
System.Single |
crossAxisSpacing |
|
System.Single |
childAspectRatio |
|
System.Boolean |
addAutomaticKeepAlives |
|
System.Boolean |
addRepaintBoundaries |
|
System.Collections.Generic.List<Widget> |
children |
|
DragStartBehavior |
dragStartBehavior |
|
Returns