ScratchToReveal
is a custom component that mimics a scratch card effect. Users can scratch off a gradient overlay to reveal hidden content beneath. Once a certain percentage of the surface is scratched, the content is fully revealed with an animation.
- Scratch effect using touch gestures
- Gradient overlay for the scratchable area
- Configurable scratch percentage threshold
- Smooth scratch strokes with a custom painter
- Reveal animation once the scratch threshold is met