motion library
Motion system, in layers:
ExpressiveMotionTokens(in tokens.dart) — raw durations and curves.- ExpressiveMotionSpec — tween presets (duration + curve).
- ExpressiveMotionScheme — spring presets (
standard,expressive). - 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
animationspackage.
Enums
- ExpressivePageTransitionType
- Types of page transitions available.
Extensions
- ExpressiveSpringAnimation on AnimationController
- Extension to easily run spring animations on controllers.
Typedefs
- ComponentMotion = ExpressiveComponentMotion
- GestureSpringBox = ExpressiveGestureSpringBox
- MotionAccessibility = ExpressiveMotionAccessibility
- MotionScheme = ExpressiveMotionScheme
- MotionSpec = ExpressiveMotionSpec
- ShapeContainerTransform = ExpressiveShapeContainerTransform
- SpringTransition = ExpressiveSpringTransition