Flutter Tabbar vs BottomNavigationBar. Setting the background color on a TabBar can be done by wrapping it in a Material of the color you want. It’s unusual to have one of these at the bottom of the screen though.
You could use the BottomNavigationBar’s onTap to trigger page changes in a PageView if you want the views to be swipeable.
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.