floating_dots 0.1.1 copy "floating_dots: ^0.1.1" to clipboard
floating_dots: ^0.1.1 copied to clipboard

outdated

Creates a group of floating dots (or a single floating dot) that travel at a random speed from one edge of the screen to another.

example/example.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Dots Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  MyHomePage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: FloatingDotGroup(
            number: 500,
            direction: Direction.up,
            trajectory: Trajectory.straight,
            size: DotSize.small,
            colors: [
              Colors.red,
              Colors.green,
              Colors.blue,
              Colors.yellow,
              Colors.purple,
              Colors.orange
            ]),
      ),
    );
  }
}
16
likes
0
pub points
68%
popularity

Publisher

unverified uploader

Creates a group of floating dots (or a single floating dot) that travel at a random speed from one edge of the screen to another.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on floating_dots