Skip to content
pubscout

material_palette

1.6.0, released 5 months ago by flutterflow.io

A collection of procedural material shader widgets and effects for Flutter.

WASM-ready
$ flutter pub add material_palette
Source repository

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.

Works with

Packages commonly used together with material_palette: ones it builds on, ones built on it, and its own family.