Different icons and text color in navBar Flutter

Viewed 33

I'm working on my flutter project and trying to figure out how to make in bottom navBar make each item in a different color. For example, I have: [icon]Home [icon]Settings [icon]Help [icon]Chat I need to make the first item (icon&text) in one color, item2(icon&text) in another color, etc As on the screenshot. Is that even possible? navBarScreenshot

1 Answers

if you using the bottom navigation bar widget there is a function called selectedItemColor: which can be used to change the color of the selected item or you can just give a container as a widget in BottomNavigationBarItem(icon: Container()) and give it a custom color according to your liking

Related