flutter_image_filters
0.0.32, released a year ago by an unverified publisher
Apply OpenGL fragment shader filters to images with preview widgets.
What it does
Applies various OpenGL/SPIR-V fragment shader filters to images, supports filter pipelines, lookup tables, and includes preview widgets like ImageShaderPreview.
AI-written summary of version 0.0.32, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to apply GPU-accelerated image filters like brightness, contrast, blur, or lookup tables.
- You want to render filtered images in real-time inside Flutter widgets.
Skip it when
- You only need basic image loading or caching without complex shaders.
- Your target platform does not support the required graphics backend capabilities.
Strengths
- Wide selection of pre-built GPUImage-based shaders.
- Supports grouped filter pipelines and custom shaders.
- Provides ready-to-use preview widgets.
Weaknesses
- Platform-specific rendering issues may occur depending on Android/iOS versions.
- Requires managing texture sources and configurations manually.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 5
Uses OpenGL fragment shaders and supports code generation via build_runner for custom/bunch configurations.
final texture = await TextureSource.fromAsset('demo.jpeg');
final configuration = BrightnessShaderConfiguration();
configuration.brightness = 0.5;
final image = await configuration.export(texture, texture.size);Alternatives
Packages that do the same job and could replace flutter_image_filters.
Works with
Packages commonly used together with flutter_image_filters: ones it builds on, ones built on it, and its own family.
- buildflutter_image_filters depends on itPackage for authoring build_runner compatible code generators.
- source_genflutter_image_filters depends on itSource code generation builders and utilities for the Dart build system.
- exifflutter_image_filters depends on itDecode EXIF metadata from TIFF, JPEG, HEIC, PNG and WebP files in Dart.
- build_runnerUsed togetherA build system for Dart code generation and modular compilation.