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.

floating_dots #

Pub

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

small dots, floating randomly small dots, floating up

Installation #

In your pubspec.yaml root add:

dependencies:
    floating_dots: ^0.1.1

then,

import 'package:floating_dots/floating_dots.dart';

Usage #

FloatingDotGroup #

FloatingDotGroup(
    number: int,
    direction: Direction,
    trajectory: Trajectory,
    size: DotSize,
    colors: List<Color>,
)

FloatingDot #

FloatingDot(
    direction: Direction,
    trajectory: Trajectory,
    radius: double,
    color: Colour,
)

Examples #

small dots

Small dots

FloatingDotGroup(
    number: 5,
    direction: Direction.up,
    trajectory: Trajectory.straight,
    size: DotSize.small,
    colors: Colors.primaries,
)

medium dots

Medium dots

FloatingDotGroup(
    number: 25,
    direction: Direction.random,
    trajectory: Trajectory.random,
    size: DotSize.medium,
    colors: Colors.accents,
)

large dots

Large dots

FloatingDotGroup(
    number: 3,
    direction: Direction.up,
    trajectory: Trajectory.straight,
    size: DotSize.large,
    colors: Colors.accents,
)
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