release library

Classes

AxisFling
A computed per-axis fling segment.
AxisRelease
Per-axis release plan.
HorizontalRelease
Release
Bundled per-axis plans. Built from a ReleaseContext via factories.
ReleaseContext
Inputs the package used (and the consumer can use) to build a Release. Pure data — gesture carries the bound configs (decay, friction) and the maxScale/minScale used by the default plan.
ScaleRelease
VerticalRelease

Extensions

ScaleEndDetailsCancel on ScaleEndDetails
Partially cancel translation velocity based on scale velocity. Call at the start of onScaleEnd and use the returned details as the gesture's velocity for the rest of the release pipeline.

Typedefs

OnRelease = void Function(BuildContext context, ReleaseContext data)
Signature for a gesture-end handler. Consumer receives raw inputs via ReleaseContext; calls Release.toDisplay(data) (or builds a custom plan) and runs it via Stage.of(context).release(...) / .run(...).