Skip to content
pubscout

spring

2.0.2, released 6 years ago by an unverified publisher

A simple pre-built animation kit for Flutter apps.

WASM-ready
$ flutter pub add spring
Source repository

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.

  • lottie

    Best for complex animations exported from Adobe After Effects.

Works with

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