Search packages, repositories and app categories

animated_background cover
Package detailsv2.0.0

animated_background

Animated Backgrounds for Flutter. Easily extended to paint whatever you want on the canvas.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.3K
Likes
311
Pub points
140

Install package

flutter pub add animated_background

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package for creating animated backgrounds with customizable canvas painting. It enables developers to easily implement dynamic visual effects such as flowing gradients, particle systems, or custom animations directly on the screen's background. The package is designed to be extensible, allowing users to define their own drawing logic using the Canvas API. Ideal for enhancing app aesthetics with minimal code, it supports all major platforms including mobile, web, and desktop.

Use cases

  • Creating immersive splash screens
  • Adding dynamic UI backgrounds
  • Enhancing game or app intros
  • Designing visually rich landing pages
  • Implementing animated gradient overlays

Key features

  • Extensible canvas drawing
  • Smooth animation performance
  • Cross-platform compatibility
  • Simple integration via pub
  • Customizable animation patterns

Suitable for

  • UI designers seeking visual flair
  • Developers building engaging onboarding flows
  • Apps requiring dynamic background visuals
  • Creative digital experiences
  • Frontend-focused Flutter projects

Considerations

  • May impact performance on low-end devices
  • Requires understanding of Canvas drawing
  • Animation complexity affects battery usage
  • Not optimized for heavy real-time rendering
  • Limited built-in presets beyond basic effects

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Animated Backgrounds for Flutter

pub package

Animated Backgrounds for Flutter. Easily extended to paint whatever you want on the canvas.

Screenshot Screenshot

Note: These examples are laggy because they were recorded from the emulator. Other examples available in the screenshots folder.

How to use

In your pubspec.yaml:

dependencies:
  animated_background: ^1.0.5

In your Dart file:

import 'package:animated_background/animated_background.dart';

Use in a Stateful Widget with mixin TickerProviderStateMixin or pass a ticker provider in vsync.

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

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package