motor
1.1.0, released 12 months ago by whynotmake.it
Unified motion system combining physics-based springs and duration-based curves.
WASM-ready
What it does
Provides a consistent Motion API to handle both physics-based spring animations and duration-based curved animations. It supports multi-dimensional animations, sequence animations, and includes Apple Cupertino and Material Design 3 motion presets.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a mix of physics-based spring animations and curve-based animations under a single API.
- You need multi-dimensional animations like Offset or Rect with independent physics per dimension.
- You want to use preset Material 3 or Cupertino motion tokens.
Skip it when
- You are looking for timeline-based vector animations like Rive or Lottie.
- You only need basic, built-in implicit Flutter animations without custom motion configs.
Strengths
- Unified API for springs and curves
- Independent physics simulation per dimension for complex types
- Built-in Cupertino and Material Design 3 motion tokens
Weaknesses
- Requires learning a new motion abstraction over standard Flutter animations
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Add the package to pubspec.yaml dependencies.
SingleMotionBuilder(
motion: CupertinoMotion.bouncy(),
value: targetValue,
builder: (context, value, child) {
return Container(
width: value,
height: value,
color: Colors.blue,
);
},
)Alternatives
Packages that do the same job and could replace motor.
Works with
Packages commonly used together with motor: ones it builds on, ones built on it, and its own family.
- equatablemotor depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- liquid_glass_rendererBuilt on motoriOS 27-style liquid glass renderer for Flutter with refraction, frost, and tint.
- flutter_floating_bottom_barBuilt on motorAn adaptable floating bottom bar that reacts to scrolling and stays accessible.
- stupid_simple_sheetBuilt on motorA simple sheet widget for Flutter.
- heroineBuilt on motorSpring-based physics hero transitions and gesture-driven animations in Flutter.
- material_3_expressiveBuilt on motorA faithful Flutter implementation of the Material 3 Expressive component set.
- springsterBuilt on motorSpring animations and physics simulations simplified for Flutter.
- m3e_coreBuilt on motorA Flutter package providing Material 3 expressive components and shapes.