If you want to change the colour of a bottomNavigationBar? You can set the backgroundColor of the BottomNavigationBarItem like this:
1 2 3 4 5 6 7 8 9 | return new BottomNavigationBar( items: <BottomNavigationBarItem>[ new BottomNavigationBarItem( icon: new Icon(Icons.library_books, size: 22.0), title: new Text("Text", style: new TextStyle(fontSize: 11.0)), backgroundColor: Colors.pink, ), ], ); |
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.