animated_background 1.0.5

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'),
);

[Unreleased]

[1.0.5] - 2019/07/11

Fixed #

  • Fix compilation error on convert image helper.

[1.0.4] - 2019/05/13

Fixed #

  • Fix ErrorDescription not available in Flutter 1.5.8

[1.0.3] - 2019/05/13

Added #

  • Add workaround to error handling to work on both stable and master.

[1.0.2] - 2019/05/13

Fixed #

  • Fix arguments to FlutterErrorDetails class - #13

[1.0.1] - 2019/01/27

Added #

  • Add onPop callback to BubblesBehaviour - #13
  • Add background color option for SpaceBehaviour - #15
  • Add EmptyBehaviour that draws nothing - #14

Changed #

  • Update dependency packages

Fixed #

  • Fix particles options update crash - #12

[1.0.0] - 2018/07/31

Added #

  • New Space warp field behaviour and "fly child" experimental behaviour.
  • New Bubbles behaviour.
  • Add configuration for racing lines behaviour.

Changed #

  • Tick is no longer called when the behaviour is not initialized.

Fixed #

  • The render object ticker is now disposed correctly.

[0.0.6] - 2018/07/23

  • Fix dependencies

[0.0.5] - 2018/07/23

  • New Racing Lines Behaviour
  • Allow Dart 2.0
  • Format code

[0.0.4] - 2018/07/14

  • No functional changes (except fixing the example)
  • Add basic documentation.

[0.0.3] - 2018/07/14

  • Add image particles.
  • Add ability to extend and create new types of backgrounds.
  • Make example app more interactive.

[0.0.2] - 2018/07/08

  • Fix README only...

[0.0.1] - 2018/07/08

  • Initial release of the particle animated background with some configuration options.

example/README.md

example #

A new Flutter project.

Getting Started #

For help getting started with Flutter, view our online documentation.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  animated_background: ^1.0.5

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:animated_background/animated_background.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
88
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
94
Learn more about scoring.

We analyzed this package on Sep 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/bubbles.dart.

Run flutter format to format lib/bubbles.dart.

Format lib/lines.dart.

Run flutter format to format lib/lines.dart.

Format lib/particles.dart.

Run flutter format to format lib/particles.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
flutter 0.0.0
meta ^1.1.5 1.1.7
Transitive dependencies
collection 1.14.11 1.14.12
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test