title: Flutter: BottomNavigationBar not changing the active icon color
body: <p>I'm totally failing to understand why the icons in bottom navigation bar are not changing the color. The default home icon (titled as timeline) has the primary color. When other tabs are clicked, tabs change but the color doesn't. The timeline/home icon still keeps the primary color</p>
  
  <pre><code> _onPageChanged(int pageIndex) {
      setState(() {
        pageIndex = pageIndex;
      });
    }
  
    _onTap(int pageIndex) {
      _pageController.jumpToPage(pageIndex);
  
    }
  
    Scaffold buildAuthScreen() {
      return Scaffold(
        body: PageView(
          children: &lt;Widget&gt;[
            Timeline(),
            ActivityFeed(),
            Upload(),
            Search(),
            Profile(),
          ],
          controller: _pageController,
          onPageChanged: _onPageChanged,
          physics: NeverScrollableScrollPhysics(),
        ),
        bottomNavigationBar: BottomNavigationBar(
          currentIndex: pageIndex,
          onTap: _onTap,
  
          type: BottomNavigationBarType.fixed,
          showUnselectedLabels: false,
          showSelectedLabels: false,
          selectedItemColor: Theme.of(context).primaryColor,
         // unselectedItemColor: Colors.grey,
          elevation: 4.0,
          items: [
            BottomNavigationBarItem(
  
              icon: Icon(Icons.home),
              title: Text('timeline'),
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.notifications_active),
              title: Text('notifications'),
            ),
            BottomNavigationBarItem(
              icon: Icon(Icons.photo_camera, size: 35.0),
              title: Text('camera'),
              ),
            BottomNavigationBarItem(
              icon: Icon(Icons.search),
              title: Text('search'),
            ),
            BottomNavigationBarItem(
              icon: Icon(
                Icons.supervised_user_circle,
              ),
              title: Text('user'),
            )
          ],
        ),
      );
  </code></pre>