Inheritance
System.Object
ScrollPosition
public abstract class ScrollPosition : ViewportOffset, Listenable, ScrollMetrics
Constructors
ScrollPosition(ScrollPhysics, ScrollContext, Boolean, ScrollPosition, String, Object)
Declaration
protected ScrollPosition(ScrollPhysics physics = null, ScrollContext context = null, bool keepScrollOffset = true, ScrollPosition oldPosition = null, string debugLabel = null, object coordinator = null)
Parameters
Fields
context
Declaration
public readonly ScrollContext context
Field Value
Declaration
public readonly string debugLabel
Field Value
Type |
Description |
System.String |
|
Declaration
public readonly ValueNotifier<bool> isScrollingNotifier
Field Value
Declaration
public readonly bool keepScrollOffset
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly ScrollPhysics physics
Field Value
Properties
Declaration
protected ScrollActivity activity { get; }
Property Value
Declaration
public override bool allowImplicitScrolling { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public abstract AxisDirection axisDirection { get; }
Property Value
Implements
Declaration
public bool haveDimensions { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool havePixels { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public float maxScrollExtent { get; }
Property Value
Type |
Description |
System.Single |
|
Implements
Declaration
public float minScrollExtent { get; }
Property Value
Type |
Description |
System.Single |
|
Implements
Declaration
public override float pixels { get; }
Property Value
Type |
Description |
System.Single |
|
Overrides
Implements
Declaration
public float viewportDimension { get; }
Property Value
Type |
Description |
System.Single |
|
Implements
Methods
Declaration
protected virtual void absorb(ScrollPosition other)
Parameters
Declaration
protected float applyBoundaryConditions(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Returns
Type |
Description |
System.Single |
|
applyContentDimensions(Single, Single)
Declaration
public override bool applyContentDimensions(float minScrollExtent, float maxScrollExtent)
Parameters
Type |
Name |
Description |
System.Single |
minScrollExtent |
|
System.Single |
maxScrollExtent |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
protected virtual void applyNewDimensions()
Declaration
public override bool applyViewportDimension(float viewportDimension)
Parameters
Type |
Name |
Description |
System.Single |
viewportDimension |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public virtual void beginActivity(ScrollActivity newActivity)
Parameters
Declaration
public override void correctBy(float correction)
Parameters
Type |
Name |
Description |
System.Single |
correction |
|
Overrides
Declaration
public void correctPixels(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Declaration
protected override void debugFillDescription(List<string> description)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.String> |
description |
|
Overrides
Declaration
public void didEndScroll()
Declaration
public void didOverscrollBy(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Declaration
public void didStartScroll()
Declaration
public void didUpdateScrollDirection(ScrollDirection direction)
Parameters
Declaration
public void didUpdateScrollPositionBy(float delta)
Parameters
Type |
Name |
Description |
System.Single |
delta |
|
Declaration
public override void dispose()
Overrides
Declaration
public abstract Drag drag(DragStartDetails details, VoidCallback dragCancelCallback)
Parameters
Returns
Declaration
public IPromise ensureVisible(RenderObject renderObject, float alignment = 0F, TimeSpan? duration = default(TimeSpan? ), Curve curve = null)
Parameters
Type |
Name |
Description |
RenderObject |
renderObject |
|
System.Single |
alignment |
|
System.Nullable<System.TimeSpan> |
duration |
|
Curve |
curve |
|
Returns
Declaration
protected void forcePixels(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Declaration
public abstract ScrollHoldController hold(VoidCallback holdCancelCallback)
Parameters
Returns
Declaration
public override IPromise moveTo(float to, TimeSpan? duration, Curve curve = null, bool clamp = true)
Parameters
Type |
Name |
Description |
System.Single |
to |
|
System.Nullable<System.TimeSpan> |
duration |
|
Curve |
curve |
|
System.Boolean |
clamp |
|
Returns
Overrides
Declaration
protected virtual void restoreScrollOffset()
Declaration
protected virtual void saveScrollOffset()
Declaration
public virtual float setPixels(float newPixels)
Parameters
Type |
Name |
Description |
System.Single |
newPixels |
|
Returns
Type |
Description |
System.Single |
|
Extension Methods