BallisticScrollActivity class

An activity that animates a scroll view based on a physics Simulation.

A BallisticScrollActivity is typically used when the user lifts their finger off the screen to continue the scrolling gesture with the current velocity.

BallisticScrollActivity is also used to restore a scroll view to a valid scroll offset when the geometry of the scroll view changes. In these situations, the Simulation typically starts with a zero velocity.

See also:



BallisticScrollActivity(ScrollActivityDelegate delegate, Simulation simulation, TickerProvider vsync)
Creates an activity that animates a scroll view based on a simulation. [...]


isScrolling bool
Whether performing this activity constitutes scrolling. [...]
shouldIgnorePointer bool
Whether the scroll view should ignore pointer events while performing this activity.
velocity double
If applicable, the velocity at which the scroll offset is currently independently changing (i.e. without external stimuli such as a dragging gestures) in logical pixels per second for this activity.
delegate ScrollActivityDelegate
The delegate that this activity will use to actuate the scroll view.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


applyMoveTo(double value) bool
Move the position to the given location. [...]
applyNewDimensions() → void
Called when the scroll view that is performing this activity changes its metrics.
dispatchOverscrollNotification(ScrollMetrics metrics, BuildContext context, double overscroll) → void
Dispatch an OverscrollNotification with the given metrics and overscroll.
dispose() → void
Called when the scroll view stops performing this activity.
resetActivity() → void
Called by the ScrollActivityDelegate when it has changed type (for example, when changing from an Android-style scroll position to an iOS-style scroll position). If this activity can differ between the two modes, then it should tell the position to restart that activity appropriately. [...]
toString() String
dispatchScrollEndNotification(ScrollMetrics metrics, BuildContext context) → void
Dispatch a ScrollEndNotification with the given metrics and overscroll.
dispatchScrollStartNotification(ScrollMetrics metrics, BuildContext context) → void
Dispatch a ScrollStartNotification with the given metrics.
dispatchScrollUpdateNotification(ScrollMetrics metrics, BuildContext context, double scrollDelta) → void
Dispatch a ScrollUpdateNotification with the given metrics and scroll delta.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
updateDelegate(ScrollActivityDelegate value) → void
Updates the activity's link to the ScrollActivityDelegate. [...]


operator ==(dynamic other) bool
The equality operator. [...]