Class GridView | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class GridView

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    ScrollView
    BoxScrollView
    GridView
    Inherited Members
    BoxScrollView.padding
    BoxScrollView.buildSlivers(BuildContext)
    BoxScrollView.debugFillProperties(DiagnosticPropertiesBuilder)
    ScrollView.scrollDirection
    ScrollView.reverse
    ScrollView.controller
    ScrollView.primary
    ScrollView.physics
    ScrollView.shrinkWrap
    ScrollView.center
    ScrollView.anchor
    ScrollView.cacheExtent
    ScrollView.dragStartBehavior
    ScrollView.getDirection(BuildContext)
    ScrollView.buildViewport(BuildContext, ViewportOffset, AxisDirection, List<Widget>)
    ScrollView.build(BuildContext)
    StatelessWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class GridView : BoxScrollView

    Constructors

    GridView(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, SliverGridDelegate, Boolean, Boolean, Nullable<Single>, List<Widget>)

    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

    GridView(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, SliverGridDelegate, IndexedWidgetBuilder, Nullable<Int32>, Boolean, Boolean, Nullable<Single>)

    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

    GridView(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, SliverGridDelegate, SliverChildDelegate, Nullable<Single>, 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, SliverGridDelegate gridDelegate = null, SliverChildDelegate childrenDelegate = null, float? cacheExtent = default(float? ), 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
    SliverGridDelegate gridDelegate
    SliverChildDelegate childrenDelegate
    System.Nullable<System.Single> cacheExtent
    DragStartBehavior dragStartBehavior

    GridView(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, Nullable<Int32>, Single, Single, Single, Boolean, Boolean, Nullable<Single>, List<Widget>, 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, 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

    GridView(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, Nullable<Single>, Single, Single, Single, Boolean, Boolean, Boolean, List<Widget>, 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

    childrenDelegate

    Declaration
    public readonly SliverChildDelegate childrenDelegate
    Field Value
    Type Description
    SliverChildDelegate

    gridDelegate

    Declaration
    public readonly SliverGridDelegate gridDelegate
    Field Value
    Type Description
    SliverGridDelegate

    Methods

    buildChildLayout(BuildContext)

    Declaration
    protected override Widget buildChildLayout(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    Widget
    Overrides
    BoxScrollView.buildChildLayout(BuildContext)

    builder(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, SliverGridDelegate, IndexedWidgetBuilder, Nullable<Int32>, Boolean, Boolean, Nullable<Single>)

    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
    Type Description
    GridView

    count(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, Nullable<Int32>, Single, Single, Single, Boolean, Boolean, Nullable<Single>, List<Widget>, DragStartBehavior)

    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
    Type Description
    GridView

    custom(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, SliverGridDelegate, SliverChildDelegate, Nullable<Single>, DragStartBehavior)

    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
    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
    SliverChildDelegate childrenDelegate
    System.Nullable<System.Single> cacheExtent
    DragStartBehavior dragStartBehavior
    Returns
    Type Description
    GridView

    extent(Key, Axis, Boolean, ScrollController, Nullable<Boolean>, ScrollPhysics, Boolean, EdgeInsets, Nullable<Single>, Single, Single, Single, Boolean, Boolean, List<Widget>, DragStartBehavior)

    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
    Type Description
    GridView
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023