PersistentBottomNavBar icon indicating copy to clipboard operation
PersistentBottomNavBar copied to clipboard

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': Failed assertion: line 107 pos 16: 'handleAndroidBackButtonPress && onWillPop != null'

Open BeingCode opened this issue 2 years ago • 9 comments

BeingCode avatar Feb 25 '23 08:02 BeingCode

Hey, did you manage to fix this? Having same issue.

danielcabral-code avatar Mar 03 '23 16:03 danielcabral-code

Same issue.

handleAndroidBackButtonPress: true,
onWillPop: (context) => Future.value(true),

also with

handleAndroidBackButtonPress: false,
onWillPop: (context) => Future.value(true),

Error : The following assertion was thrown building BaseLayout(dirty, dependencies: [MediaQuery, _LocalizationsScope-[GlobalKey#5117e]], state: _BaseLayoutState#dfd0f): If you declare the onWillPop function, you will have to handle the back function functionality yourself as your onWillPop function will override the default function. 'package:persistent_bottom_nav_bar/persistent_tab_view.widget.dart': Failed assertion: line 49 pos 16: 'handleAndroidBackButtonPress && onWillPop == null'

AymericLeFeyer avatar Mar 15 '23 14:03 AymericLeFeyer

I am also facing this issue. Anyone find solution of this error?

If you declare the onWillPop function, you will have to handle the back function functionality yourself as your onWillPop function will override the default function.

Zee604 avatar Apr 11 '23 06:04 Zee604

I'm not facing the issue in this version of this package https://pub.dev/packages/persistent_bottom_nav_bar_v2 Hope this will help you guys.

whoissharif avatar May 01 '23 10:05 whoissharif

is anyone found solution about this issue , kindly share here

itsdani121 avatar May 18 '23 11:05 itsdani121

still facing the issue with latest version persistent_bottom_nav_bar: ^5.0.2

itsdani121 avatar May 18 '23 11:05 itsdani121

Same issue arise with persistent_bottom_nav_bar 5.0.2. Anyone find solution of this error?

debasiskoley avatar Mar 01 '24 06:03 debasiskoley

Same issue arise with persistent_bottom_nav_bar 5.0.2. Anyone find solution of this error?

handleAndroidBackButtonPress: true,

ravikumarbigwings avatar Apr 02 '24 09:04 ravikumarbigwings

By toggling handleAndroidBackButtonPress: true, and handling WillPopScope solved my problem

rnamilakonda avatar Apr 15 '24 11:04 rnamilakonda