BilalShahid13 / PersistentBottomNavBar

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

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' #327

Open BeingCode opened 1 year ago

danielcabral-code commented 1 year ago

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

AymericLeFeyer commented 1 year ago

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'

Zee604 commented 1 year ago

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.

whoissharif commented 1 year ago

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.

itsdani121 commented 1 year ago

is anyone found solution about this issue , kindly share here

itsdani121 commented 1 year ago

still facing the issue with latest version persistent_bottom_nav_bar: ^5.0.2

debasiskoley commented 8 months ago

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

ravikumarbigwings commented 7 months ago

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

handleAndroidBackButtonPress: true,

rnamilakonda commented 7 months ago

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