slot_machine_effect 0.0.2
slot_machine_effect: ^0.0.2 copied to clipboard
A slot machine reel for Flutter. Spins up, drifts to a stop on the value you ask for, and rocks into place with a small bounce.
0.0.2 #
- Breaking: the reel no longer spins when it first appears. Spins are now
driven solely by
targetchanging, so a screen can show a resting value without animating into it. To spin on load, changetargetafter the first frame. - Added
placeholder: the value the reel rests on before its first spin, defaulting totarget. Useful for parking on a blank face until a result is ready to reveal.
0.0.1 #
- Initial release.
SlotMachineReel: a looping reel that spins totargetand settles with a bounce.- Continuous velocity-profile motion — wind-up, run, wind-down, bounce — with no speed discontinuity between phases.
- Configurable
duration,delay,spins,reverse,bounceExtentandbounceDuration;onSpinStartandonSettledcallbacks. - Spin requests arriving mid-spin are ignored, so the animation cannot be broken by repeated taps.