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

Go.back() not only closes dialog, but also goes to root route #3293

Open
chirastefan opened this issue Jan 22, 2025 · 1 comment
Open

Go.back() not only closes dialog, but also goes to root route #3293

chirastefan opened this issue Jan 22, 2025 · 1 comment
Assignees

Comments

@chirastefan
Copy link

chirastefan commented Jan 22, 2025

The issue can be reproduced in this repo https://github.com/chirastefan/getx-sandbox
Steps:

  • Clone the project
  • run flutter pub get
  • start the app
  • press on "Go to 2nd screen" button
  • press on "Open dialog" button
  • press the close button

Expect: only close the dialog.
Actual: it closes the dialog and also goes to the root.

GetX routing log:

[GETX] GOING TO ROUTE /second
[GETX] OPEN DIALOG 860261192
[GETX] CLOSE DIALOG 860261192
[GETX] CLOSE TO ROUTE /second
@kjm0202
Copy link

kjm0202 commented Jan 31, 2025

#977 (comment)
I think it's the old bug but the dev didn't care about.
For workaround, use Get.back() instead of Get.back(closeOverlays: true).

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

3 participants