title: Flutter navigate to page with default Material Drawer
body: <p>What is the best why to navigate to a page in flutter using the default Material Drawer.
  I'm still learning how to work with Flutter.</p>
  
  <p>In Android we used to anvigate to a fragment page, but how does this work in Flutter ?</p>
  
  <p>I just want to understand how to navigate to an drawer item without without using bloc's.</p>
  
  <p><a href="https://i.stack.imgur.com/Ntjp4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ntjp4.jpg" alt="Screenshot of app"></a></p>
  
  <pre><code>class MdDrawer extends StatelessWidget {
    final String title;
  
    MdDrawer({Key key, this.title}) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return new Scaffold(
        appBar: AppBar(
          title: Text(title),
        ),
        body: Center(
          child: Text('MyPage'),
        ),
        drawer: Drawer(
  
          child: ListView(
            padding: EdgeInsets.zero,
            children: &lt;Widget&gt;[
  
              UserAccountsDrawerHeader(
                accountName: const Text(_AccountName),
                accountEmail: const Text(_AccountEmail),
                currentAccountPicture: CircleAvatar(
                  backgroundColor: Colors.brown,
                  child: Text(_AccountAbbr),
                ),
              ),
  
              ListTile(
                leading: Icon(Icons.lightbulb_outline),
                title: Text('Notes'),
                onTap: () =&gt; _alertOnListTileTap(context),
              ),
  
              Divider(),
  
              ...
  
            ],
          ),
        ),
      );
    }
  
    _alertOnListTileTap(BuildContext context) {
      Navigator.of(context).pop();
      showDialog(
        context: context,
        child: AlertDialog(
          title: const Text('Not Implemented'),
          actions: &lt;Widget&gt;[
            FlatButton(
              child: const Text('OK'),
              onPressed: () {
                Navigator.of(context).pop();
              },
            ),
          ],
        ),
      );
    }
  }
  </code></pre>