0
return BottomNavigationBar(
      type: BottomNavigationBarType.fixed,
      items: const <BottomNavigationBarItem>[
        BottomNavigationBarItem(
          icon: Icon(Icons.home),
          title: Text(  
            'Home',
            style: TextStyle(color: Color(0xFF545454)),
          ),
        ),
        BottomNavigationBarItem(
          icon: Icon(FontAwesomeIcons.heart),
          title: Text(
            'Wish List',
            style: TextStyle(color: Color(0xFF545454)),
          ),
        ),
        BottomNavigationBarItem(
          icon: Icon(FontAwesomeIcons.shoppingBag),
          title: Text(
            'Cart',
            style: TextStyle(color: Color(0xFF545454)),
          ),
        ),
        BottomNavigationBarItem(
          icon: Icon(FontAwesomeIcons.dashcube),
          title: Text(
            'Dashboard',
            style: TextStyle(color: Color(0xFF545454)),
          ),
        ),
      ],
      currentIndex: _selectedIndex,
      selectedItemColor: Color(0xFFAA292E),
      onTap: _onItemTapped,
    );
  }
}
Robert Sandberg
  • 6,832
  • 2
  • 12
  • 30
dh-pal
  • 1

1 Answers1

1

BottomNavigationBarItem doesn't have a title parameter anymore. It should be something like this now:

    BottomNavigationBarItem(
      icon: Icon(FontAwesomeIcons.heart),
      label: 'Wish List',
    ),

For styling, you can see an old answer of mine: https://stackoverflow.com/a/64469096/13263384

Robert Sandberg
  • 6,832
  • 2
  • 12
  • 30