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

fix/wrong-navigator-used: _onBackPressed use the wrong navigator. #233

Merged
merged 2 commits into from
Sep 29, 2024

Conversation

EArminjon
Copy link
Contributor

_onBackPressed use rootNavigator: true.

When using alice.setNavigatorKey(navigatorKey) the code using using rootNavigator: true will use the root navigator of the app instead of the one gave from setNavigatorKey. That lead to some black screen (because root page removed) or wrong root removal.

This property should be removed as this PR did.

@techouse techouse added the bug Something isn't working label Sep 3, 2024
@techouse techouse self-assigned this Sep 3, 2024
@techouse
Copy link
Collaborator

techouse commented Sep 3, 2024

Looks like #229 is blocking this.

@jhomlala can you please review #229 once you can? :)

@@ -17,7 +17,7 @@ class AliceGeneralDialog {
}) =>
showDialog<void>(
context: context,
builder: (BuildContext buildContext) {
builder: (BuildContext context) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without that, the wrong context is pop (the parent one) and instead of dialog pop we got root navigation pop...

@EArminjon
Copy link
Contributor Author

Hello, any update ?

@jhomlala jhomlala merged commit 1dc7382 into jhomlala:master Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants