Read page as text

NIB / PLAYGROUND

Bounded drag and snap back — Flutter animation playground

Directly move an object inside a measured range. Let users move an object without losing it outside its useful area.

Open interactive view

Directly move an object inside a measured range.

Let users move an object without losing it outside its useful area.

Try the interaction

Drag the puck

Read the guide and example code

Controls

SettingGroupRangeInitial
Drag radiusINTERACTION40.0–120.080.0
StiffnessSPRING PHYSICS80.0–420.0180.0
DampingSPRING PHYSICS6.0–45.018.0
MassSPRING PHYSICS0.4–2.51.0