NIB / PLAYGROUND
Drag to snap targets — Flutter animation playground
Release near a stop and the object finds the closest target. Help a freely moved object land on a useful discrete choice.
Open interactive viewRelease near a stop and the object finds the closest target.
Help a freely moved object land on a useful discrete choice.
Try the interaction
Drag toward either stop
Read the guide and example code
Controls
| Setting | Group | Range | Initial |
|---|---|---|---|
| Snap distance | INTERACTION | 50.0–130.0 | 95.0 |
| Stiffness | SPRING PHYSICS | 80.0–420.0 | 180.0 |
| Damping | SPRING PHYSICS | 6.0–45.0 | 18.0 |
| Edge elasticity | INTERACTION | 0.0–0.5 | 0.2 |