slot_machine_effect 0.0.2 copy "slot_machine_effect: ^0.0.2" to clipboard
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 target changing, so a screen can show a resting value without animating into it. To spin on load, change target after the first frame.
  • Added placeholder: the value the reel rests on before its first spin, defaulting to target. 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 to target and 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, bounceExtent and bounceDuration; onSpinStart and onSettled callbacks.
  • Spin requests arriving mid-spin are ignored, so the animation cannot be broken by repeated taps.
1
likes
0
points
320
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on slot_machine_effect