Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect when spinner is stopped #4

Open
Renkon117 opened this issue Oct 13, 2019 · 3 comments
Open

How to detect when spinner is stopped #4

Renkon117 opened this issue Oct 13, 2019 · 3 comments

Comments

@Renkon117
Copy link

Hello, I so far love this library so much and I appreciate your work!!

But, I was wondering how I can detect when the spinner is stopped?
Am I supposed to see documentation of stream controller?

@CedYF
Copy link

CedYF commented Oct 24, 2019

Yes I have this same problem! Any solutions?

@RajanEquitysoft
Copy link

Any solution for this?

@bettkipronoh
Copy link

bettkipronoh commented Aug 22, 2020

As per documentation,onEnd is callback function to be executed when the animation stops. If you want to get the value when the wheel stops, you can do as follows where value is the position in the array of labels
`

              onEnd: (value) {
                  print("Spin results $value");

                  print("Spin label value " + labels[value]);

                  // do something when spin stops

                },

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants