Inheritance
System.Object
SliverGrid
public class SliverGrid : SliverMultiBoxAdaptorWidget
Constructors
Declaration
public SliverGrid(Key key = null, SliverChildDelegate layoutDelegate = null, SliverGridDelegate gridDelegate = null)
Parameters
Fields
Declaration
public readonly SliverGridDelegate gridDelegate
Field Value
Methods
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 |
|
System.Nullable<System.Int32> |
crossAxisCount |
|
System.Single |
mainAxisSpacing |
|
System.Single |
crossAxisSpacing |
|
System.Single |
childAspectRatio |
|
System.Collections.Generic.List<Widget> |
children |
|
Returns
createRenderObject(BuildContext)
Declaration
public override RenderObject createRenderObject(BuildContext context)
Parameters
Returns
Overrides
Declaration
public override float? estimateMaxScrollOffset(SliverConstraints constraints, int firstIndex, int lastIndex, float leadingScrollOffset, float trailingScrollOffset)
Parameters
Type |
Name |
Description |
SliverConstraints |
constraints |
|
System.Int32 |
firstIndex |
|
System.Int32 |
lastIndex |
|
System.Single |
leadingScrollOffset |
|
System.Single |
trailingScrollOffset |
|
Returns
Type |
Description |
System.Nullable<System.Single> |
|
Overrides
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 |
|
System.Nullable<System.Single> |
maxCrossAxisExtent |
|
System.Single |
mainAxisSpacing |
|
System.Single |
crossAxisSpacing |
|
System.Single |
childAspectRatio |
|
System.Collections.Generic.List<Widget> |
children |
|
Returns
updateRenderObject(BuildContext, RenderObject)
Declaration
public override void updateRenderObject(BuildContext context, RenderObject renderObject)
Parameters
Overrides