metaballs 1.0.1 copy "metaballs: ^1.0.1" to clipboard
metaballs: ^1.0.1 copied to clipboard

A metaballs implementation for flutter based on the shader package

Animated Metaballs for Flutter #

Installing: #

dependencies:
  metaballs: "^0.0.1"
import 'package:metaballs/metaballs.dart';

Usage: #

Metaballs(
  color1: const Color(0xffff54c2),
  color2: const Color(0xffffc242),
  colorChangeDuration: const Duration(milliseconds: 200),
  speedMultiplier: 1,
  bounceStiffness: 3,
  minBallRadius: 15,
  maxBallRadius: 40,
  glowRadius: 0.7,
  glowIntensity: 0.6,
  gradientAlignment: Alignment.bottomRight,
  child: Text('META BALLS')
)
property default value description
Color color1 The color at the start of the gradient used for coloring the balls
Color color2 The color at the end of the gradient used for coloring the balls
Duration colorChangeDuration Duration(milliseconds: 200) The duration of the color changing animation
double speedMultiplier 1 A multiplier of the ball movement speed
double bounceStiffness 3 A multiplier to change the speed at which balls change direction
double minBallRadius 15 The minimum size of a ball
double maxBallRadius 40 The maximum size of a ball
double glowRadius 0.7 A multiplier to indicate the radius of the glow
double glowIntensity 0.6 The brightness of the glow around the ball
Alignment gradientAlignment Alignment.bottomRight The alignment of the gradient used for coloring the balls
Widget child A widget to be placed on top of the Metaballs widget
71
likes
0
pub points
84%
popularity

Publisher

unverified uploader

A metaballs implementation for flutter based on the shader package

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on metaballs