BilalShahid13 / PersistentBottomNavBar

A highly customizable persistent bottom navigation bar for Flutter
BSD 3-Clause "New" or "Revised" License
507 stars 368 forks source link

PersistentNavBarNavigator.pushNewScreen not showing bottom navigation on new screen #320

Open romaan-khan opened 1 year ago

romaan-khan commented 1 year ago

I have 3 tabs if second bottom navigation icon is clicked then I am opening a popup and from that popup I am using PersistentNavBarNavigator.pushNewScreen( context, screen: DashboardScreen(), withNavBar: true, pageTransitionAnimation: PageTransitionAnimation.cupertino, ); I am navigating to new screen but bottom navigation bar is not present on that screen. What is the issue here please help on priority

mohamadhadibi commented 8 months ago

I found the problem. it is because of context. we should use context of PersistentNavBarNavigator to push to new screen. like this issue : https://github.com/BilalShahid13/PersistentBottomNavBar/issues/179