title: How can I change the colour of a bottomNavigationBar?
body: <p>How can I change the colour of a <code>bottomNavigationBar</code>?  </p>
  
  <p>Here below is a snippet of my code. I am unable to change the color of the widget. </p>
  
  <pre><code>@override
    Widget build(BuildContext context) {
      return BottomNavigationBar(
  
        currentIndex: currentIndex,
        onTap: (selectedPosition) =&gt; onNavItemTapped(selectedPosition),
        items: &lt;BottomNavigationBarItem&gt;[
          widget.buildBottomNavigationBarItem(
              context, 'Discover', Icons.home, false, 0),
          widget.buildBottomNavigationBarItem(
              context, 'Chats', Icons.chat, true, 1),
        ],
      );
    }
  </code></pre>