animated_background 0.0.1-fix animated_background: ^0.0.1-fix copied to clipboard
Animated backgrounds for Flutter.
Animated_background #
Animated backgrounds for Flutter.
How to use #
In your pubspec.yaml:
dependencies:
animated_background: ^0.0.1
import 'package:animated_background/animated_background.dart';
Use in a Stateful Widget with mixin TickerProviderStateMixin
or pass a ticker provider in vsync
AnimatedBackground(
particleOptions: const ParticleOptions(
baseColor: Colors.blue,
minOpacity: 0.1,
maxOpacity: 0.4,
spawnMinSpeed: 30.0,
spawnMaxSpeed: 70.0,
spawnMinRadius: 2.0,
spawnMaxRadius: 5.0,
),
particlePaint: Paint()
..style = PaintingStyle.stroke
..strokeWidth = 1.0,
vsync: this,
child: Text('Hello'),
);