title: Change Drawer Icon of Drawer Widget being returned from an external Class
body: <p>I'm trying to change the icon and color of my drawer widget in Dart. I've found ways of doing it but none that apply to my scenario. My custom drawer widget is being returned from another class and so I can't change the leading icon in the home class where the app bar is or it will replace my current drawer. I won't show all the code because I don't believe it would be necessary. Any help would be appreciated.</p>
  <p>My Current drawer and method of calling it:</p>
  <p><strong>Drawer class:</strong></p>
  <pre><code>import 'package:flutter/material.dart';
  import 'package:new_app/Users.dart';
  import '../main.dart';
  
  class MainDrawer extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Drawer(
        child: Column(
          children: &lt;Widget&gt;[
            Container(
              width: double.infinity,
              padding: EdgeInsets.all(20),
              color: Theme.of(context).primaryColor,
              child: Center(
                child: Column(
                  children: [
                    Container(
  </code></pre>
  <p><strong>Menu Class/ home page:</strong></p>
  <pre><code>import 'screens/drawer_main.dart';
  
  class Home extends StatefulWidget {
    @override
    _HomeState createState() =&gt; _HomeState();
  }
  
  class _HomeState extends State&lt;Home&gt; {
    @override
    Widget build(BuildContext context) {
      return WillPopScope(
          onWillPop: () {
            return new Future(() =&gt; false);
          },
          child: Scaffold(
            backgroundColor: Colors.blueGrey[900],
            appBar: AppBar(
              //backgroundColor: Colors.blueGrey[900],
              backgroundColor: Colors.transparent,
              automaticallyImplyLeading: true,
              title: Text(
                &quot;Home Page&quot;,
                style: TextStyle(color: Colors.white),
              ),
  
              actions: &lt;Widget&gt;[
                //Profile Pic
                IconButton(
                  icon: Icon(Icons.circle, color: Colors.white),
                  tooltip: 'Comment Icon',
                  onPressed: () {},
                ),
                MainPopUp(), //IconButton
              ],
              //IconButton
              brightness: Brightness.dark,
            ),
            //Current Method of Calling the Drawer: 
            drawer: MainDrawer(),
            body: Center(
  </code></pre>