Flutter BottomNavigationBarItem accepts only Icon and no other widgets?

Posted by Andre Scott | Updated on

Flutter BottomNavigationBarItem accepts only Icon and no other widgets? I did notice however, in items: const [ you should remove the const keyword as it is not necessary and also not constant.

And lastly, you need to add a tab builder to CupertinoTabScaffold this basically returns what’s displayed above the bottom navigation bar.

Your final code then looks like this:


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