title: How to call a page from custom AppBar using onPressed?
body: <p>I have created a custom appBar in flutter MyApplicationBar.dart
  I am including every page? now how to call Login Page   onPressed: () function</p>
  
  <pre><code>  class MyApplicationBar extends AppBar {
    MyApplicationBar({Key key, Widget title}) 
      : super(key: key, title:title, actions:&lt;Widget&gt;[
      IconButton(
          icon: new Icon(Icons.lock), 
          tooltip: 'Login',
          onPressed: () {
            print('sssss');
  
          },
        ),
      IconButton(
                icon: const Icon(Icons.supervised_user_circle),
                tooltip: 'Accounts',
                onPressed: () {
  
  
  
                },
              ),
    ]);
  
  
  }
  </code></pre>