Skip to content
pubscout

elegant_spring_animation

2.0.2, released 2 years ago by an unverified publisher

Provides physics-based spring animation curves with customizable bounciness.

WASM-ready
$ flutter pub add elegant_spring_animation
Source repository

What it does

It implements physics-based spring animations as standard Flutter Curves. It allows developers to create natural motion by specifying a bounce parameter between 0 and 1, and provides a recommendedDuration property for accurate timing.

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

Use it when

  • You want to add natural, spring-physics based curves to Flutter's AnimationController or Animated widgets.
  • You need configurable bounciness levels ranging from smooth to maximum bounce.

Skip it when

  • You need timeline-based keyframe animations or complex pre-rendered animations.
  • You are using complex vector graphics engines like Rive or Lottie.

Strengths

  • Intuitive API that integrates seamlessly as a standard Flutter Curve.
  • Provides five predefined curves with varying bounciness levels.
  • Includes a recommendedDuration property calculated automatically from the bounce parameter.

Weaknesses

  • Limited to spring curve calculations rather than being a complete animation authoring suite.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
final ElegantSpring curve = ElegantSpring.smooth;

AnimatedScale(
    scale: condition ? 0.5 : 1.0,
    duration: curve.recommendedDuration,
    curve: curve,
    child: const Text('Hello'),
)

Alternatives

Packages that do the same job and could replace elegant_spring_animation.

  • flutter_animate

    If you want a comprehensive, chainable extension-based animation library instead of isolated spring curves.

  • lottie

    If you want to render complex vector animations exported from After Effects.

  • rive

    If you need interactive state machine animations.