PersistentBottomNavBar
PersistentBottomNavBar copied to clipboard
How tu use named routes
I would like to know how to properly config the PersistentBottomNavBarItems so I can use pushNamed and not the pushNewScreen() function
Here is my current config that doesn't work
final bottomNavigationBarItems = provider.navScreens
.map(
(screen) => PersistentBottomNavBarItem(
routeAndNavigatorSettings: RouteAndNavigatorSettings(
onGenerateRoute: screen.onGenerateRoute,
initialRoute: screen.initialRoute,
navigatorKey: screen.navigatorState),
inactiveIcon: screen.icon,
icon: screen.activeIcon!,
iconSize: 28,
title: screen.title,
activeColorPrimary: themeColors(context).primary,
inactiveColorPrimary: themeColors(context).primary,
),
)
.toList();
The thing is that navigation works good with Navigator.of(context).pushNamed but i'm trying to use
popAllScreensOnTapOfSelectedTab: true,
on my PersistentTabView.custom but it doesn't work at all. Nothing happen
Please help.
Any update?