Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created October 18, 2025 13:27
Show Gist options
  • Save fredgrott/872abca1bd05cccac4ff975731f296c2 to your computer and use it in GitHub Desktop.
Save fredgrott/872abca1bd05cccac4ff975731f296c2 to your computer and use it in GitHub Desktop.
motor, how to get M3E spring motion
import 'package:motor/motor.dart';
// Physics-based motion (natural, responsive)
final spring = CupertinoMotion.bouncy(); // Or `Motion.bouncySpring()`
final material = MaterialSpringMotion.standardSpatialDefault();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment