-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
AutoRoute Aware with nested tab navigation #1028
Comments
That might be the reason. Also you should pass type to findFirstObservorOfType |
Hi. Thanks for your reply. The type exists already. :) Nothing changed. The result still persists. For back button I'm using this: context.tabsRouter.parent()?.pop(), which pops the current tabscreen |
Don't know if related but after some digging I found something:
Created duplicate observer with the code provided with package. route.settings type was CustomPage. Added this to if statement If I navigate from "course Item" screen to video player screen, the I'm using @CustomAutoRouter
|
Eddit: I think I've got somewhere. with: |
THe issue remains, if I do above, using: tabsrouter.routeData, then I get pushNext/popNext/pop/push events, but I'm losing the didInitTab and didTabChange events, if I use context.routeData, then I can get the didInitTab and didChangeTab events, but others are not firing for some reason. the previousRoute fro didPush remains always "MainRouter" for some reason. |
Hm, I'm also struggling with that. I can't get handleDidChangeTabRoute() and didChangeTabRoute() to get called. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions |
Hi.
Love the auto_route plugin and really appreciate your work with this.
Makes navigation a lot easier :)
However, I'm encountering the problem with AutoRouteAware screens.
I'm using flutter hooks and thus made a custom hook with auto route observer. (rrousselGit/flutter_hooks#166 (comment)) from this snippet
This is my current observer now with AutoRouteAware.
The thing is, I have put this hook on one screen. (course details screen)
If I navigate to this course details screen I get "didPush", but nothing else.
If I trying to navigate back or trying to push next screen, I do not get any events.
Getting didPush, if popping and then navigating back to details screen again.
I'm using tab navigation, this is my rough routes file with courses details screen
I even tried with stateful widget and the result is same, is it because I'm using wrong routeData?
The text was updated successfully, but these errors were encountered: