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
Cancel and Confirm #17
Comments
Assuming you want to put in some sort of dialog, you can get the return value from that dialog. Having so, you can assume that if that value is |
Right now I am using the _intervalPicker as a dialog in the app, and if I press ok I want to keep the method going and cancel if not. Will the value be null when canceled or will it go back to the previous state? |
Take a look at this example from readme:
If user closes dialog, then |
Oh didn't know that, Thanks a lot for the help! :) |
Can I close it or you would like some more help? :) |
You can close! :) |
How do I check if cancel and confirm?
I want to await the widget and if I press ok I want to keep doing the logic and if the user press cancel I want to stop the logic (with bool or something like that). But the cancel and confirm takes a widget. Why can I just not set logic in this?
I want to do something like this:
The text was updated successfully, but these errors were encountered: