glow_effects 0.2.0
glow_effects: ^0.2.0 copied to clipboard
GPU-native visual effects for Flutter — Fragment Shaders, CustomPainter & Explicit Animations. 11 shader effects, 4 painters, text effects, page transitions & more.
0.2.0 #
New #
- RadarEffect — GPU shader-based radar/sonar pulse with expanding rings, radial gradient, center pulse, and vignette
- RadarEffectConfig — fully customizable config with 5 presets: green, classic, blue, dark, red
- RadarScreen — full-screen radar with center icon, label, circular results overlay, and bottom action
- RadarShaderPainter — shader-based CustomPainter for the radar effect
- Results overlay — show custom Flutter widgets in a circle around center with staggered animation
- Cloudy noise background —
noiseAmount+bgColor3for organic color patches
Changed #
- Example app split into separate files (shared/, tabs/, demos/)
0.1.0 #
Initial release.
Shader Effects #
- GlitchEffect — block displacement, RGB split, scanlines, flicker
- AuroraEffect — northern lights with HSL color cycling
- DissolveEffect — noise-based dissolve with spark edges
- LiquidEffect — organic flowing color waves
- ChromaticAberrationEffect — RGB channel split with radial falloff
- PixelateEffect — mosaic pixelation with color quantization
- VHSEffect — scanlines, noise, tracking errors, vignette
- HeatWaveEffect — rising sine distortion
- NeonGlowEffect — bloom glow with flicker
- HolographicEffect — rainbow iridescence with fresnel and sparkle
CustomPainter Effects #
- MagneticParticlesPainter — spring-physics particles with pointer attraction
- MorphShapePainter — path-to-path morph via point interpolation
- ConstellationPainter — connected star network with pointer interaction
- LightningPainter — midpoint-displacement bolt with branches and glow
Text Effects #
- GKTextEffect with 4 types: typewriterGlow, neonFlicker, glitchReveal, dissolveIn
Page Transitions #
- GKPageRoute with 4 types: warp, ripple, glitch, fade
Core #
- GKController — AnimationController with time, intensity, pointer tracking
- GKWidget — effect host with triggers (auto, onTap, onHover, manual)
- GKShaderLoader — async shader loading with cache
- GKEffectComposer — multi-effect stacking with blend modes
- GKAnimationPresets — cyberpunk, dreamy, retro, minimal
- GKPerformanceManager — FPS-based quality adjustment
- GKManagedWidget — auto-adjusting intensity wrapper
- GKDebugOverlay — real-time FPS counter
Accessibility #
- All effects respect MediaQuery.disableAnimations