mesh_gradient
1.3.8, released 2 years ago by ben.fornefeld.dev
Widgets which create beautiful fluid-like mesh gradients in Flutter.
What it does
Provides customizable Flutter widgets to render fluid, acrylic-like mesh gradients and animated mesh gradients. Supports manual animation control through controllers, custom points, and various options like blend strength and noise intensity.
AI-written summary of version 1.3.8, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to create dynamic, fluid mesh gradient backgrounds in your app.
- You need acrylic-like gradients with smooth animations between specific color points.
Skip it when
- You only need simple linear or radial gradients supported out-of-the-box by Flutter.
- You are targeting environments that do not support shaders properly.
Strengths
- High degree of customization for gradient points and animation sequences.
- Performant implementation utilizing fragment shaders and CustomPainter.
- Provides both fully customizable static mesh gradients and easy-to-use animated mesh gradients.
Weaknesses
- Relies on shaders which may have platform-specific compatibility or runtime error concerns.
- Limited to specific use cases involving mesh and fluid background aesthetics.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
AnimatedMeshGradient(
colors: [
Colors.red,
Colors.blue,
Colors.green,
Colors.yellow,
],
options: AnimatedMeshGradientOptions(),
)Alternatives
Packages that do the same job and could replace mesh_gradient.
- simple_animations
Create custom animations and staggered property tweens in stateless widgets.
72Compare - mesh
Fast and customizable animated mesh gradients for Flutter applications.
89Compare - hyper_effects
Composable animations, spring effects, and scroll transitions using modifier syntax.
79Compare - matrix4_transform
Helper math class for easily creating Matrix4 transformations.
88Compare
Works with
Packages commonly used together with mesh_gradient: ones it builds on, ones built on it, and its own family.