We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the didPop function inside the ScreenObserver is an issue.
didPop
ScreenObserver
the code:
@override void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) { final name = route.settings.name; if (name != null) { screenStreamController.add(name); } }
From the documentation from didPop:
The Navigator popped route. The route immediately below that one, and thus the newly active route, is previousRoute. Copied from NavigatorObserver.
Therefore the code should be:
@override void didPop(Route<dynamic> route, Route<dynamic>? previousRoute) { final name = previousRoute.settings.name; if (name != null) { screenStreamController.add(name); } }
previousRoute is the new route, and therefore that is the name which should be tracked, not route.
previousRoute
route
The text was updated successfully, but these errors were encountered:
Hi @mschlegelaware thank you for your report, we start looking into this.
Sorry, something went wrong.
No branches or pull requests
In the
didPop
function inside theScreenObserver
is an issue.the code:
From the documentation from
didPop
:Therefore the code should be:
previousRoute
is the new route, and therefore that is the name which should be tracked, notroute
.The text was updated successfully, but these errors were encountered: