bouncy_background 1.0.0 copy "bouncy_background: ^1.0.0" to clipboard
bouncy_background: ^1.0.0 copied to clipboard

Adds animated, bouncing widgets to the background of your Flutter app

example/lib/main.dart

import 'package:bouncy_background/bouncy_background.dart';
import 'package:flutter/material.dart';

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

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

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    BouncyDeviceSize.init(context);
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: BouncyBackgroundEx(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: BouncyBackground(
          boxHeight: 50,
          boxWidth: 50,
          boxCount: 10,
          bouncyWidget: Container(
            width: 50,
            height: 50,
            decoration: const BoxDecoration(
              shape: BoxShape.circle,
              color: Colors.purple,
            ),
          ),
          body: const Center(
            child: Column(
              children: [],
            ),
          ),
        ),
      ),
    );
  }
}
14
likes
0
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Adds animated, bouncing widgets to the background of your Flutter app

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on bouncy_background