BilalShahid13 / PersistentBottomNavBar

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

custom persistent tab view greyed out #289

Open RommyChristensen opened 2 years ago

RommyChristensen commented 2 years ago

Im having trouble when i build my apk. Im using custom persisten tab view. The bottom navigation bar is colored grey and has no icon

PersistentTabView.custom( context, controller: _controller, itemCount: listMenu .length, // This is required in case of custom style! Pass the number of items for the nav bar. screens: _buildScreen(), confineInSafeArea: true, handleAndroidBackButtonPress: true, // baru resizeToAvoidBottomInset: true, // This needs to be true if you want to move up the screen when keyboard appears. Default is true. stateManagement: true, // Default is true. // baru hideNavigationBarWhenKeyboardShows: true, // baru customWidget: CustomNavBarWidget( // Your custom widget goes here items: _buildNavItems(), selectedIndex: _controller.index, onItemSelected: (index) { setState(() { _controller.index = index; // NOTE: THIS IS CRITICAL!! Don't miss it! _appBarText = listMenu[index]; }); }, ), ),

Screenshot at May 17 14-24-22