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
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.fragWorks with
Packages commonly used together with flutter_shaders: ones it builds on, ones built on it, and its own family.
- vector_mathflutter_shaders depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- path_parsingSame familyPure Dart library for parsing SVG path strings and generating Dart path code.
- material_uiSame familyOfficial Flutter Material UI library implementing Google’s Material Design system.
- flutter_animateBuilt on flutter_shadersAdd animated effects and builders in Flutter via a unified, customizable chainable API.
- liquid_glass_rendererBuilt on flutter_shadersiOS 27-style liquid glass renderer for Flutter with refraction, frost, and tint.
- progressive_blurBuilt on flutter_shadersAn iOS-like progressive blur implementation for Flutter using shaders.
- material_paletteBuilt on flutter_shadersA collection of procedural material shader widgets and effects for Flutter.
- mesh_gradientBuilt on flutter_shadersWidgets which create beautiful fluid-like mesh gradients in Flutter.