Skip to main content

Module effect

Module effect 

Source
Expand description

How overscroll displacement/pull is visualized, independent of the ScrollPhysics that computes it — a clamping physics rejecting 100% of a boundary proposal still has an edge_pull to paint an effect from (see the module docs’s design ruling), and a bouncing physics letting the position itself move past the edge can be paired with any of these the same way.

OverscrollEffect::Stretch’s intensity curve is an affine approximation of Android 12’s overscroll shader — the same class Flutter’s non-Impeller StretchingOverscrollIndicator implements — but the curve’s constants live with the paint-time application that reads them, not here; this type is only the selector.

Enums§

OverscrollEffect
How overscroll displacement/pull is VISUALIZED — orthogonal to physics.