flutter_shaders_ui
1.3.0, released 5 weeks ago by ravenlab.tech
Ready-to-use Flutter widgets powered by GLSL fragment shaders.
WASM-ready
What it does
Provides GPU-accelerated UI effects, backgrounds, and loading skeletons using GLSL fragment shaders. Includes widgets like animated gradient borders, frosted surfaces, and water or fire effects with zero external dependencies.
AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want GPU-accelerated visual effects like aurora, fire, or glassmorphism in your app.
- You need ready-to-use shader components such as frosted surfaces or animated gradient borders.
Skip it when
- You are targeting platforms that do not support Flutter fragment shaders or have issues with Impeller/Skia shader compilation.
- Your application requires basic, lightweight UI elements without custom graphical effects.
Strengths
- Zero external dependencies outside of the Flutter SDK.
- Includes built-in frame-rate capping and reduced-motion support.
- Provides a global shader cache and performance management utilities.
Weaknesses
- Relies on GLSL fragment shaders which may behave differently across various graphics backends (Skia and Impeller).
- GPU-accelerated effects can impact battery life and performance if not properly capped.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Requires no additional native configuration beyond Flutter >= 3.10.0 and Dart >= 3.0.0.
WaveBackground(
color1: const Color(0xFF0D1B2A),
color2: const Color(0xFF1B263B),
child: Center(child: Text('Hello Shaders')),
)Alternatives
Packages that do the same job and could replace flutter_shaders_ui.