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

A metaballs implementation for flutter based on the shader package

Animated Metaballs for Flutter #

Installing: #

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

Usage: #

Metaballs(
  color: const Color.fromARGB(255, 66, 133, 244),
  gradient: LinearGradient(
    colors: [
      const Color.fromARGB(255, 90, 60, 255),
      const Color.fromARGB(255, 120, 255, 255),
    ],
    begin: Alignment.bottomRight,
    end: Alignment.topLeft
  )
  colorChangeDuration: const Duration(milliseconds: 200),
  speedMultiplier: 1,
  bounceStiffness: 3,
  minBallRadius: 15,
  maxBallRadius: 40,
  glowRadius: 0.7,
  glowIntensity: 0.6,
  child: Text('METABALLS')
)
property default value description
Color? color Color(0xff4285F4) The color of the metaballs
Gradient? gradient A gradient for coloring the metaballs, overwrites color
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
85%
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