motion library

Motion system, in layers:

  1. ExpressiveMotionTokens (in tokens.dart) — raw durations and curves.
  2. ExpressiveMotionSpec — tween presets (duration + curve).
  3. ExpressiveMotionScheme — spring presets (standard, expressive).
  4. ExpressiveComponentMotion — which spring each component uses.

Plus transitions, page routes, gesture-driven springs, shape container transforms, and reduced-motion helpers (ExpressiveMotionAccessibility).

Classes

ExpressiveComponentMotion
Per-component spring assignment. Components use these as their default springs, so changing an entry here is the one place to retune them.
ExpressiveGestureSpringBox
A widget that responds to drag gestures with spring physics.
ExpressiveMotion
Deprecated: the presets moved to ExpressiveMotionSpec.
ExpressiveMotionAccessibility
Accessibility-aware motion utilities.
ExpressiveMotionScheme
Material 3 Expressive motion schemes.
ExpressiveMotionSpec
A tween-based motion specification: a duration plus a curve.
ExpressivePageRoute<T>
Expressive page route transitions.
ExpressivePageTransitionsBuilder
A PageTransitionsBuilder using expressive transitions globally.
ExpressiveShapeContainerTransform
A container transform that morphs shape during the transition.
ExpressiveSpring
A spring specification for physics-based animation.
ExpressiveSpringTransition
A widget that applies spring-based animation to its child's properties.
ExpressiveTransitions
Expressive transitions built on the animations package.

Enums

ExpressivePageTransitionType
Types of page transitions available.

Extensions

ExpressiveSpringAnimation on AnimationController
Extension to easily run spring animations on controllers.