How to change BottomNavigationBarItem icon when selected in Flutter

Posted by Jessica Taylor | Updated on

If you want to change BottomNavigationBarItem icon when selected in Flutter. You can change the icon by checking for the current index is equal to the index of BottomNavigationBarItem index.

Simple example with static index values:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers