simple_animations
5.3.0, released 6 months ago by felix-blaschke.de
Create custom animations and staggered property tweens in stateless widgets.
What it does
Simplifies creating custom animations in stateless widgets using animation builders, movie tweens for multi-property animations, and mixins for controller management. It includes developer tools for scrubbing and debugging animations.
AI-written summary of version 5.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to animate multiple properties or create staggered animations easily.
- You want to build custom animations inside stateless widgets without heavy boilerplate.
Skip it when
- You are already heavily using alternative animation packages like flutter_animate.
- You require complex physics-based motion engines better suited by specialized physics libraries.
Strengths
- Easy creation of custom animations in stateless widgets
- Supports staggered and multi-property animations via MovieTween
- Built-in developer tools for pausing, scrubbing, and debugging
Weaknesses
- Requires learning its custom builder and tween API conventions
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
PlayAnimationBuilder<double>(
tween: Tween(begin: 100.0, end: 200.0),
duration: const Duration(seconds: 1),
builder: (context, value, _) {
return Container(width: value, height: value, color: Colors.blue);
},
)Alternatives
Packages that do the same job and could replace simple_animations.
- flutter_animate
Offers an extensive chainable extension-based animation API for Flutter widgets.
70Compare - animate_do
Provides a collection of pre-made ready-to-use entrance and attention animations.
71Compare
Works with
Packages commonly used together with simple_animations: ones it builds on, ones built on it, and its own family.
- entryBuilt on simple_animationsAnimate widgets into a visible state with opacity, scale, position, and angle.
- springBuilt on simple_animationsA simple pre-built animation kit for Flutter apps.
- animated_styled_widgetBuilt on simple_animationsSerializable CSS-inspired styles with implicit and explicit animations for custom widgets.