spring
2.0.2, released 6 years ago by an unverified publisher
A simple pre-built animation kit for Flutter apps.
WASM-ready
What it does
Provides pre-built animations like slide, scale, flip, fade, and rotate using a set of custom widgets and an optional SpringController. Allows starting, reversing, and listening to animation statuses easily without managing manual state.
AI-written summary of version 2.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need quick, pre-built animations for common effects like slide, scale, or shake.
- You want programmatic control over animations using a controller without manual setState management.
Skip it when
- You need complex vector graphics or timeline-based timelines provided by Rive or Lottie.
- You require highly customized physics animations not covered by the built-in animation kit types.
Strengths
- Easy to set up with pre-built widgets for standard animations.
- Includes SpringController for controlling animations imperatively.
- Supports animation status callbacks.
Weaknesses
- Limited to a predefined set of animation effects and controllers.
- Relies heavily on external packages like simple_animations.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Spring.slide(
slideType: SlideType.slide_in_right,
child: FlutterLogo(),
);Alternatives
Packages that do the same job and could replace spring.
- flutter_animate
Provides a comprehensive and chainable animation syntax for Flutter widgets.
70Compare - lottie
Best for complex animations exported from Adobe After Effects.
96Compare
Works with
Packages commonly used together with spring: ones it builds on, ones built on it, and its own family.
- vector_mathspring depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- universal_platformspring depends on itPlatform detection across Flutter, Dart web, and desktop without errors
- simple_animationsspring depends on itCreate custom animations and staggered property tweens in stateless widgets.
- superchargedspring depends on itExtension methods adding utility functions for Dart and Flutter.