Skip to content
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

onWillPop assert error for custom navbar #342

Open
zhell opened this issue Nov 6, 2023 · 0 comments
Open

onWillPop assert error for custom navbar #342

zhell opened this issue Nov 6, 2023 · 0 comments

Comments

@zhell
Copy link

zhell commented Nov 6, 2023

Hello,

I keep getting this error on a custom nav bar :
════════ Exception caught by widgets library ═══════════════════════════════════
If you declare the onWillPop function, you will have to handle the back function functionality yourself as your onWillPop function will override the defualt function.
'package:persistent_bottom_nav_bar/persistent_tab_view.widget.dart':
persistent_tab_view.widget.dart:1
Failed assertion: line 107 pos 16: 'handleAndroidBackButtonPress && onWillPop != null'

It seems like you missed the assert correction for the "custom" widget constructor.

There is also a small typo on the assert message "default"

Edit : There are actually 2 PR created to fix this issue, #309 & #336, one of them need to be merged to fix this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant