Skip to content Skip to sidebar Skip to footer

[FLUTTER]: Something Is Wrong With PersistentBottomNavBar Package

I had an another issue before using 'Provider' package with 'PersistentBottomNavBar' package in my flutter app. So after solving that issue, immediately I got another one. There is

Solution 1:

The issue seems to be that you are not passing the navBarStyle to PersistentTabView. There are various NavBarStyle's to select and each of them have other values that they require. Please refer to 'persistent_bottom_nav_bar' documentation for more information. Kindly make the following changes to your code and check. Note NavBarStyle.style7 might not be the navBarStyle you were looking for, so please try others.

.....
return Scaffold(
  body: PersistentTabView(
    context,
    controller: _tabController,
    screens: _buildScreens(),
    items: _navBarsItems(),
    navBarStyle: NavBarStyle.style7,
  ),
....

Post a Comment for "[FLUTTER]: Something Is Wrong With PersistentBottomNavBar Package"