title: How to add a badge count number as part of a BottomNavigationBarItem in flutter
body: <p>I am writing a flutter app which updates the number of notifications in the <code>BottomNavigationBar</code>.</p>
  
  <p>I used a bottom navigation library<code>(AHBottomNavigation)</code> to accomplish the same goal in native android(java) but I cant seem to find my way around it using flutter.</p>
  
  <pre><code> items: &lt;BottomNavigationBarItem&gt;[
                    BottomNavigationBarItem(
                        title: Text('Home'), icon: Icon(Icons.home)),
                    BottomNavigationBarItem(
                        title: Text('Friends'), icon:Icon(Icons.notifications)),
                    BottomNavigationBarItem(
                        title: Text('Settings'), icon: Icon(Icons.settings)),
                  ],
  </code></pre>
  
  <p>I want to get what is in label 2 with the 4 attached to the <code>BottomNavigationBarItem</code>.</p>
  
  <p><a href="https://i.stack.imgur.com/JAsqD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JAsqD.png" alt="enter image description here"></a></p>