title: How to change navigation drawer hamburger menu icon to arrow icon when open/close drawer layout - Flutter?
body: <p>When I created drawer layout following the <a href="https://flutter.dev/docs/cookbook/design/drawer" rel="nofollow noreferrer">Add a Drawer to a screen docs</a>, it works OK. However, I have a problem, this is menu Icon.</p>
  
  <p>In Android, I setup drawer layout with DrawerToggle and when I open drawer, menu icon is going to change to arrow icon and when I close drawer, arrow icon is going to change to menu icon.</p>
  
  <p>In Flutter, it do not work as above.</p>
  
  <p>If you understand my problem, please help me. I have search a lot, but not found solution. So I want to ask everyone. Thankyou so much.</p>
  
  <p><a href="https://i.stack.imgur.com/lT8C2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lT8C2.png" alt="enter image description here"></a></p>
  
  <pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart';
  
  void main() =&gt; runApp(MyApp());
  
  class MyApp extends StatelessWidget {
    final appTitle = 'Drawer Demo';
  
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        title: appTitle,
        home: MyHomePage(title: appTitle),
      );
    }
  }
  
  class MyHomePage extends StatelessWidget {
    final String title;
  
    MyHomePage({Key key, this.title}) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(title: Text(title)),
        body: Center(child: Text('My Page!')),
        drawer: Drawer(
          // Add a ListView to the drawer. This ensures the user can scroll
          // through the options in the Drawer if there isn't enough vertical
          // space to fit everything.
          child: ListView(
            // Important: Remove any padding from the ListView.
            padding: EdgeInsets.zero,
            children: &lt;Widget&gt;[
              DrawerHeader(
                child: Text('Drawer Header'),
                decoration: BoxDecoration(
                  color: Colors.blue,
                ),
              ),
              ListTile(
                title: Text('Item 1'),
                onTap: () {
                  // Update the state of the app
                  // ...
                  // Then close the drawer
                  Navigator.pop(context);
                },
              ),
              ListTile(
                title: Text('Item 2'),
                onTap: () {
                  // Update the state of the app
                  // ...
                  // Then close the drawer
                  Navigator.pop(context);
                },
              ),
            ],
          ),
        ),
      );
    }
  }
  </code></pre>