jb3rndt / PersistentBottomNavBarV2

A highly customizable persistent bottom navigation bar for Flutter
https://pub.dev/packages/persistent_bottom_nav_bar_v2
BSD 3-Clause "New" or "Revised" License
49 stars 54 forks source link

How to navigate from Screen B to A using the Back Button #121

Closed Tarhex closed 7 months ago

Tarhex commented 9 months ago

I am having a challenge which I could not figure out in the documentation.

Let's say I tap on Settings on the Nav Bar and it opens the Settings Page. On the Settings Page, I tap on About, which opens About Page. On the About Page, I page on Contact Details, and it takes me to Contact Page. How do I go back from Contact Page to About Page and then subsequently to Settings page using the Back Button.

Thanks

jb3rndt commented 8 months ago

This should work by default with the handleAndroidBackButtonPress: true setting. What happens when you press the android back button? Nothing?

Tarhex commented 8 months ago

When I tap the back button, the app minimize to the background instead of showing the dialog box.

On Thu, 11 Jan 2024, 23:16 Jannis Berndt, @.***> wrote:

This should work by default with the handleAndroidBackButtonPress: true setting. What happens when you press the android back button? Nothing?

— Reply to this email directly, view it on GitHub https://github.com/jb3rndt/PersistentBottomNavBarV2/issues/121#issuecomment-1888055724, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANNWCNLDTRAILIBYNABAC2LYOBQCDAVCNFSM6AAAAABBIQT5HKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGA2TKNZSGQ . You are receiving this because you authored the thread.Message ID: @.***>

jb3rndt commented 8 months ago

Ok, please make sure that handleAndroidBackButtonPress: true and onWillPop: null. If it is still not working please send me a snippet of your PersistentTabView creation

Tarhex commented 8 months ago

I had to start the app from scratch again and it worked. Thanks for the reply.