Skip to content
pubscout

animated_background

2.0.0, released 6 years ago by andrebaltazar.com

Animated backgrounds for Flutter with customizable particle behaviors.

WASM-ready
$ flutter pub add animated_background
Source repository

What it does

Provides an AnimatedBackground widget that renders various animated patterns like particles, bubbles, and racing lines on a canvas. It can also be easily extended to paint custom visuals.

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

Use it when

  • You want to add animated particle or background effects behind your Flutter widgets.
  • You need an easily extensible canvas painting solution for backgrounds.

Skip it when

  • You require complex state management solutions.
  • You are building performance-critical apps where custom canvas animations might cause frame drops on lower-end devices.

Strengths

  • Includes several built-in behaviors like random particles, bubbles, and space warp.
  • Easily extensible to paint custom graphics on the canvas.

Weaknesses

  • May impact performance on lower-end devices if too many particles are rendered.
  • Limited documentation outside of the README and basic examples.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Requires the TickerProviderStateMixin in a Stateful Widget or a provided ticker provider.

AnimatedBackground(
  behaviour: RandomParticleBehaviour(),
  vsync: this,
  child: Text('Hello'),
);

Alternatives

Packages that do the same job and could replace animated_background.