A highly customizable Flutter widget that adds a dynamic, interactive holographic foil effect to its children. Simulates iridescence and texture, reacting beautifully to tilt angles and offsets.
- Interactive Effect: Responds dynamically to changes in
angleX,angleY(tilt), andoffset(position/parallax). - Rich Visuals: Combines customizable radial rainbow gradients and linear stripes for a complex holographic look.
- Optional Grain Texture: Add realism with a subtle, repeating grain overlay (
grainAsset). - Overlay Blending: Children are blended onto the effect using
BlendMode.overlayfor seamless integration. - Clipping: Easily clip the effect and children to shapes using
borderRadius. - Highly Configurable: Control gradient colors, stops, shift intensity, sensitivity, base alignments, and grain opacity. Sensible defaults provided.
Add halofoil to your pubspec.yaml dependencies:
dependencies:
halofoil: ^0.0.1