Skip to content

Comments

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

Merged
jhomlala merged 2 commits intojhomlala:masterfrom
EArminjon:fix/wrong-navigator-used
Sep 29, 2024
Merged

fix/wrong-navigator-used: _onBackPressed use the wrong navigator.#233
jhomlala merged 2 commits intojhomlala:masterfrom
EArminjon:fix/wrong-navigator-used

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 requested a review from jhomlala September 3, 2024 07:59
@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? :)

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
@EArminjon EArminjon deleted the fix/wrong-navigator-used branch November 10, 2024 13:54
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