Skip to content
pubscout

sprung

3.0.1, released 4 years ago by lukepighetti.com

Spring curves for Flutter animations based on real physics equations.

WASM-ready
$ flutter pub add sprung
Source repository

What it does

Sprung provides physics-based Curve implementations for Flutter animations, including underDamped, criticallyDamped, overDamped, and custom spring simulations using damping, stiffness, mass, and velocity.

AI-written summary of version 3.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want physics-based motion for your Flutter animations
  • You need custom spring damping and stiffness values for Curves
  • You want reliable curve accuracy with minimal error

Skip it when

  • You are looking for a complete animation orchestration library like flutter_animate
  • You only need standard non-physics Flutter curves

Strengths

  • Based on real physics equations leveraging Newton's Second Law and Hooke's Law
  • Offers simple pre-built curves like underDamped, criticallyDamped, and overDamped
  • Allows full customization through Sprung.custom

Weaknesses

  • Limited to spring curve definitions for standard Flutter animations

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
AnimatedContainer(
  curve: Sprung.underDamped,
  /// ...
)

Alternatives

Packages that do the same job and could replace sprung.

  • flutter_animate

    Pick it if you need a comprehensive, chainable animation framework rather than just physics-based curves.

  • animate_do

    Pick it if you want ready-to-use entrance animations.

  • rive

    Pick it if you require complex vector animations and interactive state machines.

Works with

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