PersistentBottomNavBarV2
PersistentBottomNavBarV2 copied to clipboard
Using Go Router with PersistentBottomNavBar
I'm building a new app in Flutter with Go_Router and PersistentBottomNavBar (Since all new recipes point to Go_Router as the go-to navigation solution). Is there an option to integrate Go_Router with PersistentBottomNavBar?
If I do something like pushNewScreenWithRouteSettings( context, screen: ProductsListScreen(), settings: RouteSettings(name: "/products"), );
,
the page isn't pushed to the stack of Go_Router.
For other people that want to user this navbar with Go_Router:
- Remove AppBar & Drawer from the Scaffold with the navbar
- Add them to every separate screen
- Using Go_Router inside the tabs of the navbar is impossible. Just go with pushNamedScreen on these occasions
If you're using EndDrawer, you'll need to add this in your AppBar:
leading: (ModalRoute.of(context)?.canPop ?? false) ? const BackButton() : null,
I'll look at it, but it might take some time as I never used Go_Router. There is actually another issue related to that already #24. I will reopen the issue to keep track of it.
Any news on this?
Not really, I had no time yet to take a deep look into it. Maybe after the beta is released
Not really, I had no time yet to take a deep look into it. Maybe after the beta is released
Alrighty, thanks for the quick reply. Since i'm in the middle of implementing the go_router into my project, it's pretty crucial for me that this works. Haven't tried if those issues actually affect me, but if they do, i'll maybe just investigate that myself and do a quick pr
If you are in the topic already anyway, a PR would be a huge help, so dont hesitate :)
The newest beta contains support for go_router. See this issue for more information: https://github.com/jb3rndt/PersistentBottomNavBarV2/issues/24. Closing this as a duplicate.