Skip to content
pubscout

flutter_shaders

0.1.5, released 6 weeks ago by flutter.dev

Utilities and shaders for working with the FragmentProgram API in Flutter

WASM-ready
$ flutter pub add flutter_shaders
Source repository

What it does

Provides utilities and available shaders like pixelation to make working with the FragmentProgram API easier in Flutter applications. Includes widgets like AnimatedSampler and helper interfaces for configuring uniforms.

AI-written summary of version 0.1.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to use custom fragment shaders with the AnimatedSampler widget
  • You want to include pre-built shaders like pixelation in your Flutter application
  • You need helper utilities to simplify constructing FragmentShader uniform data

Skip it when

  • You do not need to use fragment shaders or graphics processing
  • You are looking for state management or networking solutions

Strengths

  • Simplifies working with the low-level FragmentProgram API
  • Includes pre-built utilities and shaders like pixelation
  • Provides AnimatedSampler and FloatUniformsSetter interfaces

Weaknesses

  • Limited documentation on all internals beyond the README and changelog
  • Requires manual pubspec shader declarations

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Requires declaring desired shaders in your pubspec.yaml under the flutter.shaders section.

flutter:
  shaders:
    - packages/flutter_shaders/shaders/pixelation.frag

Works with

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