Skip to content
pubscout

animated

2.0.0, released 6 years ago by an unverified publisher

An implicit animation library for creating smooth transitions between values in Flutter.

WASM-ready
$ flutter pub add animated
Source repository

What it does

It provides a simple widget that handles smooth implicit animations between two values over a given duration and curve. The builder function is called at each frame when the value changes, supporting a child parameter for optimization.

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

Use it when

  • You need implicit animations and AnimatedContainer is not sufficient
  • You want to animate custom numeric values between state changes

Skip it when

  • You need explicit animation controllers and complex choreography
  • You are already using an extensive animation library that covers this

Strengths

  • Simple API for implicit animations
  • Supports optimization by separating animated parts from static children

Weaknesses

  • Very minimal feature set compared to comprehensive animation suites
  • Not documented beyond basic usage

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

@override
Widget build(BuildContext context) {
  return Animated(
    value: 1.2,
    curve: Curves.easeInOut,
    duration: Duration(milliseconds: 300),
    builder: (context, child, animation) => Transform.scale(
      scale: animation.value,
      child: child,
    ),
    child: Container(
      width: 40,
      height: 40,
      color: Colors.red,
    ),
  );
}

Alternatives

Packages that do the same job and could replace animated.