A Flutter widget that creates a scratch card interface to temporarily hide content from users.
Scratcher is a Flutter package that provides a scratch card widget, allowing developers to hide content behind an interactive overlay that users can scratch away. It solves the need for creating engaging, game-like interfaces or promotional reveals within Flutter apps without building custom scratch logic from scratch.
Flutter developers building mobile or web applications that require interactive scratch card features, such as games, marketing campaigns, or authentication flows.
Developers choose Scratcher for its ease of integration, multi-platform support, and extensive customization options, including progress tracking, threshold callbacks, and programmatic control, all packaged in a performant Flutter widget.
Scratch card widget which temporarily hides content from user.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports Android, iOS, and Web (CanvasKit), as stated in the README, making it versatile for most Flutter projects.
Allows cover with solid color or custom image, adjustable brush size, accuracy, and event callbacks, enabling tailored scratch experiences.
Exposes reset and reveal methods via GlobalKey, enabling dynamic manipulation like resetting scratches with animations, as shown in the example.
Provides callbacks for scratch start, update, end, and threshold reached, facilitating responsive app logic based on user interaction.
Only works with CanvasKit on Flutter web, excluding HTML or other renderers, which restricts usage in some web projects.
The accuracy property forces a choice between precise progress reporting and performance, as lower accuracy improves speed but reduces detail.
README lacks in-depth tutorials, error handling guides, and best practices, relying on a basic example that may not cover complex scenarios.