Inheritance
System.Object
RenderSliverFillViewport
public class RenderSliverFillViewport : RenderSliverFixedExtentBoxAdaptor, HitTestTarget, ContainerRenderObjectMixin
Constructors
Declaration
public RenderSliverFillViewport(RenderSliverBoxChildManager childManager = null, float viewportFraction = 1F)
Parameters
Properties
Declaration
public override float itemExtent { get; set; }
Property Value
Type |
Description |
System.Single |
|
Overrides
Declaration
public float viewportFraction { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
protected override float estimateMaxScrollOffset(SliverConstraints constraints, int firstIndex = 0, int lastIndex = 0, float leadingScrollOffset = 0F, float trailingScrollOffset = 0F)
Parameters
Type |
Name |
Description |
SliverConstraints |
constraints |
|
System.Int32 |
firstIndex |
|
System.Int32 |
lastIndex |
|
System.Single |
leadingScrollOffset |
|
System.Single |
trailingScrollOffset |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Declaration
protected override int getMaxChildIndexForScrollOffset(float scrollOffset, float itemExtent)
Parameters
Type |
Name |
Description |
System.Single |
scrollOffset |
|
System.Single |
itemExtent |
|
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
protected override int getMinChildIndexForScrollOffset(float scrollOffset, float itemExtent)
Parameters
Type |
Name |
Description |
System.Single |
scrollOffset |
|
System.Single |
itemExtent |
|
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
protected override float indexToLayoutOffset(float itemExtent, int index)
Parameters
Type |
Name |
Description |
System.Single |
itemExtent |
|
System.Int32 |
index |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Extension Methods