Skip to content
pubscout

animated_gradient

0.0.3, released 3 years ago by bibeksaha.in

Widget that shows a moving animated gradient background for Flutter apps.

WASM-readyCopyleft license
$ flutter pub add animated_gradient
Source repository

What it does

The package supplies an AnimatedGradient widget that paints a continuously shifting gradient. You can wrap any child widget to display it over the animated background.

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

Use it when

  • You need a simple animated background without writing custom shaders
  • You want a quick visual effect that works on all Flutter platforms

Skip it when

  • Precise control over animation curves or gradient paths is required
  • Performance is critical for high‑frame‑rate scenes
  • Your project cannot use GPL‑3.0 licensed code

Strengths

  • Very easy to integrate
  • Works on Android, iOS, Web, Windows, macOS, Linux
  • No additional setup or native code needed

Weaknesses

  • Limited customization of animation behavior
  • Only provides a random moving gradient
  • GPL‑3.0 license may be incompatible with some projects

Setup

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: AnimatedGradient(
        child: const Text('Done!',
          style: TextStyle(color: Colors.white, fontSize: 50, fontWeight: FontWeight.w700),
        ),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace animated_gradient.

  • shimmer

    Provides a lightweight shimmering effect that can be used as an alternative visual animation