-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Honor "useRootNavigator" arg when "Navigator.pop" is called #27
Conversation
Hi @paolovalerdi you are absolutely right, this needs to be added. Good find, thanks! I think I even experienced the issue you describe myself in a use case, that I then forgot to look into. Now when I see this issue report/PR I'm sure this was the reason for it. I can and will merge this, but I also noticed I need to move The reason why those toolbar OK/close buttons are in the Widget itself and not in the dialog, is because I wanted to be able to show them easily on the same top row as the title and copy and paste buttons, but doing so kind of forced me to move them into the widget itself. Not an ideal design, as they will be problematic of course if configured to be shown/used when the widget is not used in a Dialog, ie on main surface. All I could do about that was to document it and say don't do that, lol. Anyway, to make it possible for them to also access the So I need to deprecate it in the Now I'm just pondering if it should be in the What do you think? I would love to hear some preferences on it. It is not yet a very common use case to need it. So maybe it is cleaner in the |
Thanks for such detailed explanation! 😄 I also noticed that but decided to keep 'as is' because, as you said, I did not think that argument should be part of the |
I will merge your contribution (so you get the due attribution for this find) and then rework the Might be until tomorrow before I have time to implement the fix. I'll let you know when it is done, in case you want to try/test it via GitHub before I publish it as an update on pub.dev. |
@paolovalerdi Your PR and fix was merged, and then converted to be as prop via Let me know if you still have any issues with it. Thanks for this contribution! |
Awesome! I'll check it out and let you know. Thank you so much 👍 |
Currently, the "useRootNavigator" field is ignored when the 'Navigator.pop' method is called by pressing either the 'cancel' or 'ok' button, which causes some unexpected issues in certain use cases like having nested navigators in a bottom navigation bar configuration.