kevlatus / flutter_fortune_wheel

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

How to stop on a particular position or selection ? #72

Closed MuthuHere closed 2 years ago

MuthuHere commented 2 years ago

Would like to stop on a specific position. How to stop in such case?

kevlatus commented 2 years ago

Hi @MuthuHere, could you please be more specific? What do you mean by "specific position"? An example of what you are trying to achieve would be helpful.

MuthuHere commented 2 years ago

let's say, we have 10% ,20%, 30%, 50%, 100% offers in wheel. I would like to give 20% for a user after their spin. How to stop the wheel at the 20%? hope you got my point...

kevlatus commented 2 years ago

There is an example app on pub, which solves that problem. You can replace the example values with your percentages and instead of drawing random values, you select the one applicable to your logic.

I hope that helps.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.