Class SliverGrid
Inheritance
SliverGrid
Inherited Members
Namespace: Unity.UIWidgets.widgets
Syntax
public class SliverGrid : SliverMultiBoxAdaptorWidget
Constructors
SliverGrid(Key, SliverChildDelegate, SliverGridDelegate)
Declaration
public SliverGrid(Key key = null, SliverChildDelegate layoutDelegate = null, SliverGridDelegate gridDelegate = null)
Parameters
Type | Name | Description |
---|---|---|
Key | key | |
SliverChildDelegate | layoutDelegate | |
SliverGridDelegate | gridDelegate |
Fields
gridDelegate
Declaration
public readonly SliverGridDelegate gridDelegate
Field Value
Type | Description |
---|---|
SliverGridDelegate |
Methods
count(Key, Nullable<Int32>, Single, Single, Single, List<Widget>)
Declaration
public static SliverGrid count(Key key = null, int? crossAxisCount = default(int? ), float mainAxisSpacing = 0F, float crossAxisSpacing = 0F, float childAspectRatio = 1F, List<Widget> children = null)
Parameters
Type | Name | Description |
---|---|---|
Key | key | |
Nullable<Int32> | crossAxisCount | |
Single | mainAxisSpacing | |
Single | crossAxisSpacing | |
Single | childAspectRatio | |
List<Widget> | children |
Returns
Type | Description |
---|---|
SliverGrid |
createRenderObject(BuildContext)
Declaration
public override RenderObject createRenderObject(BuildContext context)
Parameters
Type | Name | Description |
---|---|---|
BuildContext | context |
Returns
Type | Description |
---|---|
RenderObject |
Overrides
estimateMaxScrollOffset(SliverConstraints, Int32, Int32, Single, Single)
Declaration
public override float? estimateMaxScrollOffset(SliverConstraints constraints, int firstIndex, int lastIndex, float leadingScrollOffset, float trailingScrollOffset)
Parameters
Type | Name | Description |
---|---|---|
SliverConstraints | constraints | |
Int32 | firstIndex | |
Int32 | lastIndex | |
Single | leadingScrollOffset | |
Single | trailingScrollOffset |
Returns
Type | Description |
---|---|
Nullable<Single> |
Overrides
SliverMultiBoxAdaptorWidget.estimateMaxScrollOffset(SliverConstraints, Int32, Int32, Single, Single)
extent(Key, Nullable<Single>, Single, Single, Single, List<Widget>)
Declaration
public static SliverGrid extent(Key key = null, float? maxCrossAxisExtent = default(float? ), float mainAxisSpacing = 0F, float crossAxisSpacing = 0F, float childAspectRatio = 1F, List<Widget> children = null)
Parameters
Type | Name | Description |
---|---|---|
Key | key | |
Nullable<Single> | maxCrossAxisExtent | |
Single | mainAxisSpacing | |
Single | crossAxisSpacing | |
Single | childAspectRatio | |
List<Widget> | children |
Returns
Type | Description |
---|---|
SliverGrid |
updateRenderObject(BuildContext, RenderObject)
Declaration
public override void updateRenderObject(BuildContext context, RenderObject renderObject)
Parameters
Type | Name | Description |
---|---|---|
BuildContext | context | |
RenderObject | renderObject |