scratch_to_win 0.2.5 copy "scratch_to_win: ^0.2.5" to clipboard
scratch_to_win: ^0.2.5 copied to clipboard

Scratchable overlay to reveal hidden widgets with gestures and callbacks. Supports progress tracking, confetti, haptics, sound, brush textures, image overlays, and a controller for reset/reveal-all.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'scratch_customizer_page.dart';

void main() {
  runApp(const ScratchToWinExampleApp());
}

class ScratchToWinExampleApp extends StatelessWidget {
  const ScratchToWinExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'scratch_to_win example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const ScratchCustomizerPage(),
    );
  }
}
2
likes
140
points
240
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Scratchable overlay to reveal hidden widgets with gestures and callbacks. Supports progress tracking, confetti, haptics, sound, brush textures, image overlays, and a controller for reset/reveal-all.

Repository (GitHub)
View/report issues

Topics

#ui #animation #widget #game

License

MIT (license)

Dependencies

audioplayers, flutter

More

Packages that depend on scratch_to_win