Skip to content
pubscout

animate_gradient

0.0.4, released a year ago by geekyants.com

Creates animated gradient backgrounds with customizable colors and alignments.

WASM-ready
$ flutter pub add animate_gradient
Source repository

What it does

Animate a gradient between two color lists while optionally animating the gradient’s start and end alignments. It exposes a simple widget API that accepts primary and secondary color lists, alignment options, and animation controls.

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

Use it when

  • You need a smooth animated gradient background for a widget
  • You want to quickly add animated gradients without writing custom animation code
  • You need support for AlignmentGeometry for RTL layouts

Skip it when

  • You require complex animation choreography beyond simple gradients
  • You need high-performance animations for many widgets simultaneously
  • You are building a large-scale app with many custom animations and prefer a single animation library

Strengths

  • Simple API with only two required color lists
  • Supports both Alignment and AlignmentGeometry for RTL support
  • Allows custom duration, curve, repeat, and controller
  • No external dependencies beyond Flutter

Weaknesses

  • Very small community and limited documentation
  • No example of advanced use cases or performance benchmarks
  • No support for other animation types (e.g., physics)

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:animate_gradient/animate_gradient.dart';

AnimateGradient(
  primaryColors: const [Colors.pink, Colors.pinkAccent, Colors.white],
  secondaryColors: const [Colors.blue, Colors.blueAccent, Colors.white],
  child: YourWidget(),
);

Alternatives

Packages that do the same job and could replace animate_gradient.