floating_bubbles 2.0.0-nullsafety.2 copy "floating_bubbles: ^2.0.0-nullsafety.2" to clipboard
floating_bubbles: ^2.0.0-nullsafety.2 copied to clipboard

outdated

A Flutter Package for adding Floating bubbles on the Foreground to any Flutter widget.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      showPerformanceOverlay: true,
      home: Scaffold(
        body: HomePage(),
      ),
    );
  }
}

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        Positioned.fill(
          child: Container(
            color: Colors.blue,
          ),
        ),
        Positioned.fill(
          child: FloatingBubbles(
            noOfBubbles: 25,
            colorOfBubbles: Colors.white,
            sizeFactor: 0.16,
            duration: 120, //120 seconds.
            opacity: 70,
            paintingStyle: PaintingStyle.stroke,
            strokeWidth: 8,
          ),
        ),
      ],
    );
  }
}

class HomePage1 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        Positioned.fill(
          child: Container(
            color: Colors.blue,
          ),
        ),
        Positioned.fill(
          child: FloatingBubbles.alwaysRepeating(
            noOfBubbles: 25,
            colorOfBubbles: Colors.green.withAlpha(30),
            sizeFactor: 0.16,
            opacity: 70,
            paintingStyle: PaintingStyle.fill,
          ),
        ),
      ],
    );
  }
}
80
likes
0
pub points
90%
popularity

Publisher

unverified uploader

A Flutter Package for adding Floating bubbles on the Foreground to any Flutter widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, simple_animations

More

Packages that depend on floating_bubbles