title: How to give onPressed action to BottomNavigationBar in flutter?
body: <p>I have a BottomNavigationBar in flutter,and i want to on click of the individual widgets of the BottomNavigationBar, so on press button &quot;Add Contact&quot; it should navigate me to the next page which is my FifthScreen.</p>
  <pre><code>Widget _myListView(BuildContext context) {
    return Column(children: [
      Expanded(
          child: ListView(
            padding: const EdgeInsets.only(top: 10.0),
            children: ListTile.divideTiles(
              context: context,
              tiles: [
                ListTile(
                  leading: CircleAvatar(
                    backgroundImage: AssetImage('Icons.account_circle'),
                  ),
                  title: Text('User 1'),
                  subtitle: Text('Hello'),
                  onTap: () =&gt; Navigator.push(context,
                      MaterialPageRoute(builder: (context) =&gt; FourthScreen())),
                ),
              ],
            ).toList(),
          )),
      BottomNavigationBar(items: [
        BottomNavigationBarItem(icon: Icon(Icons.add), label: &quot;Add Contact&quot;,),
        BottomNavigationBarItem(icon: Icon(Icons.group), label: &quot;Contacts&quot;),
        BottomNavigationBarItem(icon: Icon(Icons.settings), label: &quot;Settings&quot;),
      ])
    ]);
  }```
  
  </code></pre>