cool_background_animation 0.0.2 copy "cool_background_animation: ^0.0.2" to clipboard
cool_background_animation: ^0.0.2 copied to clipboard

A Flutter package for stunning and customizable background animations.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'bubble_animation.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Star Falling Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body:
        CelebrationAnimation(
          child: const Text('🎉'),
          particleCount: 100,
          colors: [Colors.blue, Colors.red, Colors.green, Colors.yellow],
          particleType: ParticleType.star,
          animationType: AnimationType.firework,
          backgroundType: BackgroundType.animated,
          backgroundGradientColors: [
            Colors.purple.withOpacity(0.3),
            Colors.blue.withOpacity(0.3),
            Colors.pink.withOpacity(0.3),
          ],
          rotateParticles: true,
          enableGlow: true,
          enableTrails: true,
          enablePhysics: true,
        ));
  }
}
38
likes
0
points
174
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for stunning and customizable background animations.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on cool_background_animation