skip to Main Content

How can I hide a BottomNavigationBarItem on Flutter?

I have something like this int _selectedIndex = 0; final List<Widget> _screens = const [ TopNavigator(), SearchScreen(), SettingsScreen(), SelectedAlbumScreen() ]; void setSelectedScreen(int index) { setState(() { _selectedIndex = index; }); } BottomNavigationBar( type: BottomNavigationBarType.fixed, backgroundColor: Colors.black, items: const <BottomNavigationBarItem>[ BottomNavigationBarItem(…

VIEW QUESTION
Back To Top
Search