material_palette
1.6.0, released 5 months ago by flutterflow.io
A collection of procedural material shader widgets and effects for Flutter.
What it does
Provides a collection of procedural material shaders implemented as Flutter widgets. It includes various gradient fills, special effects, burn, smoke, pixel dissolve, slurp, and filter/transition wrappers configured via immutable parameter bags.
AI-written summary of version 1.6.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to apply procedural shader backgrounds or fills like Perlin noise, gradients, or liquid patterns.
- You need interactive shader wrap effects such as ripples, burns, or page peel transitions on existing widgets.
Skip it when
- You need simple standard Flutter UI elements without GPU-accelerated custom shaders.
- Target platforms do not support custom fragment shaders or Impeller requirements.
Strengths
- Wide range of built-in Gen1 and Gen2 material effects and shaders.
- Supports multiple animation modes including implicit, continuous, and explicit configurations.
- Immutable ShaderParams parameter bag makes customization straightforward.
Weaknesses
- Requires fragment shaders to be explicitly declared in the application's pubspec.yaml file.
- Continuous animation modes can impact performance if overused across complex layouts.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Fragment shaders from the package must be explicitly declared under the flutter: shaders section in your app's pubspec.yaml file.
GrittyGradientShaderFill(
width: 300,
height: 200,
params: grittyGradientDef.defaults
.withColor('color0', Colors.blue)
.withColor('color1', Colors.purple),
)Alternatives
Packages that do the same job and could replace material_palette.
- bouncy_button
A customizable 3D push button with spring animations, async loading states, and accessibility.
73Compare - animated_text_kit
Flutter widget library providing a collection of ready‑to‑use text animation effects.
72Compare - sa3_liquid
Liquid implementation from simple animations 3.x
45Compare - show_up_animation
Widget that animates a child into view with optional delay and direction
56Compare
Works with
Packages commonly used together with material_palette: ones it builds on, ones built on it, and its own family.