springster
1.0.2, released 12 months ago by whynotmake.it
Spring animations and physics simulations simplified for Flutter.
WASM-ready
What it does
Provides builders, draggable widgets, and simulation controllers for 1D and 2D spring-based animations and physics in Flutter. Offers preset spring configurations like bouncy, snappy, and interactive.
AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want spring-based animations with natural physics and customizable bounce or duration.
- You need widgets that can be dragged and return to their origin with a spring animation.
- You need low-level spring simulation controllers similar to AnimationController.
Skip it when
- You want the next-generation package Motor, which supersedes Springster with a unified motion API.
- You require complex multi-dimensional animations with independent physics per dimension (use Motor instead).
Strengths
- Simple declarative widgets like SpringBuilder and SpringBuilder2D.
- Includes 2D spring animations and SpringDraggable out of the box.
- Multiple predefined spring configurations (bouncy, snappy, instant, etc.).
Weaknesses
- Deprecated in favor of the newer Motor package.
- Limited to spring physics and basic simulation controllers.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
SpringBuilder(
spring: Spring.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 springster.
Works with
Packages commonly used together with springster: ones it builds on, ones built on it, and its own family.
- motorspringster depends on itUnified motion system combining physics-based springs and duration-based curves.
- liquid_glass_rendererSame familyiOS 27-style liquid glass renderer for Flutter with refraction, frost, and tint.
- stupid_simple_sheetSame familyA simple sheet widget for Flutter.
- heroineSame familySpring-based physics hero transitions and gesture-driven animations in Flutter.