title: How to give onPress function for BottomNavigationBar menu in flutter?
body: <p>i have a bottomnavigation bar in flutter  ,what i want is on click of the individual widgets of the bottombar it should navigate me to the next page</p>
  
  <pre><code>    Widget _bottemTab() {
      return new BottomNavigationBar(
  
  
      currentIndex: _currentIndex,
      onTap:(newIndex) =&gt; setState((){_currentIndex = newIndex;}),
      type: BottomNavigationBarType.fixed,
      items: [
        new BottomNavigationBarItem(
            icon: Image.asset(
              "assets/home.png",
              width: 24.0,
              height: 24.0,
            ),
            title: Text(
              'Home',
            ),
        ),
        new BottomNavigationBarItem(
            icon: Image.asset(
              "assets/shopping-bagg.png",
              width: 24.0,
              height: 24.0,
            ),
            title: Text(
              'Mall',
            )),
        new BottomNavigationBarItem(
            icon: Image.asset(
              "assets/qr-code.png",
              width: 24.0,
              height: 24.0,
            ),
            title: Text(
              'Scan',
            )),
        new BottomNavigationBarItem(
  
            icon: Image.asset(
              "assets/bank.png",
              width: 24.0,
              height: 24.0,
            ),
            title: Text(
              'Bank',
            )),
  
  
  
        new BottomNavigationBarItem(
            icon: Image.asset(
              "assets/delivery.png",
              width: 24.0,
              height: 24.0,
            ),
            title: Text(
              'Inbox',
            )),
  
  
      ]);
        }
  </code></pre>
  
  <p>i want is on click of the individual widgets of the bottombar it should navigate me to the next page which i have created separately for each menu items of bottom navigation view..any help is appreciated</p>