kevlatus / flutter_fortune_wheel

Visualize random selections with Flutter widgets like the wheel of fortune.
https://kevlatus.github.io/flutter_fortune_wheel
MIT License
110 stars 84 forks source link

Does support for a predefined value exist? #87

Closed peazz closed 2 years ago

peazz commented 2 years ago

I come across your package and upon initial testing, it's amazing - kudos!

I was wondering, does support exist for landing on a predefined result? for example, could I start the wheel with a defined end value and have the animation always land on that cell?

programmador commented 2 years ago

Actually it's the only way it works. Out of the box. You provide a Stream. And the wheel/bar goes to a position sent into the Sink.

kevlatus commented 2 years ago

hi @peazz, as @programmador pointed out, this is exactly how this package works. Please have a look at the example to see how values are provided to the wheel