metaballs
1.5.0, released 4 years ago by an unverified publisher
A Flutter widget that renders animated metaballs using shaders.
WASM-ready
What it does
Provides a highly configurable metaballs visual effect that animates based on cursor or touch input. It uses shader code for performant rendering on web, mobile, and desktop platforms.
AI-written summary of version 1.5.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a fluid, animated visual effect for backgrounds or UI embellishments
- Cross‑platform projects where performance matters and you want a ready‑made metaballs widget
Skip it when
- You require custom physics or non‑visual metaball logic
- You need a package that offers extensive interaction handling beyond the provided effects
Strengths
- Shader‑based rendering gives smooth performance on all platforms
- Many configurable parameters (color, gradient, effects, glow, etc.)
- Works on web, mobile, and desktop without extra setup
Weaknesses
- Limited to visual metaball effects, no deeper physics simulation
- Documentation focuses on usage; advanced customization may require reading source
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Metaballs(
color: const Color.fromARGB(255, 66, 133, 244),
effect: MetaballsEffect.follow(growthFactor: 1, smoothing: 1, radius: 0.5),
gradient: LinearGradient(
colors: [Color.fromARGB(255, 90, 60, 255), Color.fromARGB(255, 120, 255, 255)],
begin: Alignment.bottomRight,
end: Alignment.topLeft,
),
metaballs: 40,
animationDuration: const Duration(milliseconds: 200),
speedMultiplier: 1,
bounceStiffness: 3,
minBallRadius: 15,
maxBallRadius: 40,
glowRadius: 0.7,
glowIntensity: 0.6,
child: const Text('METABALLS'),
);Alternatives
Packages that do the same job and could replace metaballs.
- device_frame
Provides mock device frames to preview Flutter UI on various device screens.
73Compare