Skip to content
pubscout

motor

1.1.0, released 12 months ago by whynotmake.it

Unified motion system combining physics-based springs and duration-based curves.

WASM-ready
$ flutter pub add motor
Source repository

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.

  • flutter_animate

    If you prefer a fluent extension-method based animation API rather than a unified motion system.

  • rive

    If you need rich vector animations created in the Rive editor.

  • lottie

    If you need to render After Effects animations exported as JSON.

Works with

Packages commonly used together with motor: ones it builds on, ones built on it, and its own family.