My BottomNavigationBar
is completely white. It works fine when there is 3
icons but when increased to 4
, the Navbar goes completely white. The tabs can still be selected and changed.
This is the output of the console when the widget is run.
ic=null mNaviBarColor -15724014 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
This is the build of the Navbar:
_bottomNavChildren[_currentIndex],
bottomNavigationBar: BottomNavigationBar(
onTap: onTabTapped,
currentIndex: _currentIndex,
items: [
BottomNavigationBarItem(
icon: Icon(Icons.search),
title: Text('Browse'),
),
BottomNavigationBarItem(
icon: Icon(Icons.message),
title: Text('Messages'),
),
BottomNavigationBarItem(
icon: Icon(Icons.person_outline),
title: Text('Profile'),
And this is the List
widget that points to the relevant indexed classes.
int _currentIndex = 0;
final List<Widget> _bottomNavChildren = [
BrowsePage(),
MessagesPage(),
ProfilePage(),
];
Anyone know what the issue is? Thanks
BottomNavigationBarType.fixed
for thetype
solved it. Thanks. – Retouch