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

CupertinoSpinBox initialValue not resetting #7

Closed
soccerjf opened this issue Dec 14, 2020 · 4 comments
Closed

CupertinoSpinBox initialValue not resetting #7

soccerjf opened this issue Dec 14, 2020 · 4 comments

Comments

@soccerjf
Copy link

Good day, I'm using 2 cupertinospinboxs. Both allow for individual "spins". When the 1st spinner is set to 0 (zero), the 2nd widget is expected to be reset to 0 as well. The underlaying data source is managed by Provider and ChangeNotifier. I console print out the value of initialValue for both spinners and see that the initial build is correct for both initialValues. When the 1st spinner is set to 0, the console print shows the 2nd spinner's initialValue is the expected 0 value but the displayed value remains at the current value, ie not getting reset.
Not sure if this is an issue specific to your script so Im still researching for a solution but was hoping you may have a solution/correction or workaround.
Thank you for your time.

@jpnurmi
Copy link
Collaborator

jpnurmi commented Dec 15, 2020

Could you help me to understand the problem by providing a short example snippet that illustrates the problem?

@soccerjf
Copy link
Author

soccerjf commented Dec 16, 2020 via email

@soccerjf
Copy link
Author

soccerjf commented Dec 18, 2020 via email

@jpnurmi
Copy link
Collaborator

jpnurmi commented Dec 28, 2020

I'll take it that the problem was solved. Let me know if you think there's something that should be changed in flutter_spinbox.

@jpnurmi jpnurmi closed this as completed Dec 28, 2020
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

2 participants