scratch_to_win 0.2.5
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.
0.2.5 #
- SDK constraints: Fixed
sdkfrom the invalid^3.10.4to'>=3.6.0 <4.0.0'; bumped minimum Flutter from>=1.17.0to>=3.27.0— required sinceColor.withValues(alpha:)(used internally) was introduced in Flutter 3.27. - pubspec: Added
topics: [ui, animation, widget, game]for better pub.dev discoverability; expanded description. - Docs: Added field-level dartdoc comments to all
ScratchPainterfields; moved the constructor inline comment onscratchPathRevisionto a proper///doc. - CI: Added
dart format --output=none --set-exit-if-changedandflutter analyze --fatal-infossteps; added a dedicatedpublish-dry-runjob.
0.2.4 #
- README: short note that GitHub Actions badges (and pub.dev’s copy of images) can lag behind a few minutes after CI goes green.
0.2.3 #
- CI: Removed steps for
simple_scratch_test(directory was never in the repo). Added exampleflutter testand a web build smoke step so the interactive lab stays verified on Linux. - Docs: README notes on pub.dev, the bundled
example/lab, and the GitHub Pages live demo. - GitHub Actions: New Deploy example (web) workflow publishing the example app to GitHub Pages (enable Pages with the “GitHub Actions” source).
0.2.2 #
- Confetti: Added
confettiDuration(default 4s, matching the old controller),confettiMinChipSize/confettiMaxChipSize(defaults 20×10 … 30×15, matching legacy confetti widget chip bounds). - Brush: Texture stamps are clipped to a circle so the scratch tip no longer looks square when using
brushTexture. - Reveal assist:
revealAssistButtonLabelis nowString?; empty string hides the button even whenshowRevealAssistButtonis true (null still defaults the label toReveal).
0.2.1 #
- Replaced the
confettipackage with a built-in celebration overlay so particles spawn across the full width of the card (rain from above + sparkle in the upper area) instead of clustering from one corner.
0.2.0 #
- Simpler API: Removed velocity-based brush, brush shape options (only round stroke), and confetti tuning except
confettiParticleCount. Confetti uses an omnidirectional burst with built-in gravity and timing (rain-like). - Docs: Expanded
progressGridResolutiondocumentation on [ScratchToWin].
0.1.0 #
- Image overlay:
overlayImage+overlayImageFitto scratch off a bitmap instead of only color/gradient. - Brush texture:
brushTextureuses the image alpha (BlendMode.dstOut) for stamp-shaped erasing; shows plain clears while the image is still decoding. - Completion flair:
playConfettiOnThreshold,confettiParticleCount, and optionalplaySoundOnCompletionviacompletionSoundAssetorcompletionSoundUrl(audioplayers). - Reveal assist:
showRevealAssistButton,revealAssistButtonLabel,revealAssistPadding;ScratchToWinController.revealAll().
0.0.1 #
- Initial release:
ScratchToWinoverlay with scratch gestures, progress estimate, threshold callback, haptics, andScratchToWinControllerreset.