animate_gradient
0.0.4, released a year ago by geekyants.com
Creates animated gradient backgrounds with customizable colors and alignments.
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.
- animated_styled_widget
Serializable CSS-inspired styles with implicit and explicit animations for custom widgets.
79Compare - mesh
Fast and customizable animated mesh gradients for Flutter applications.
89Compare - zo_animated_border
Add animated, glowing, and gradient borders to any Flutter widget.
76Compare - animated_gradient
Widget that shows a moving animated gradient background for Flutter apps.
49Compare