title: Flutter Drawer as separate widget doesn't allow width modification
body: <p>Trying to implement a side drawer in a new app, I could render it but it covers the whole screen, here is how I set it:</p>
  
  <p>the home page:</p>
  
  <pre><code>class Home extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text('Home'),
        ),
        drawer: SideDrawer(),
        body: Center(
          child: Text('Home page'),
        ),
      );
    }
  }
  </code></pre>
  
  <p>the drawer widget in a separate file:</p>
  
  <pre><code>class SideDrawer extends StatelessWidget {
    const SideDrawer({Key key, this.user}) : super(key: key);
    final FirebaseUser user;
  
    @override
    Widget build(BuildContext context) {
      return new SizedBox(
        width: MediaQuery.of(context).size.width * 0.85,
        child: Drawer(
            child: new ListView(
          children: &lt;Widget&gt;[
            new DrawerHeader(
              child: new Text("DRAWER HEADER.."),
              decoration: new BoxDecoration(color: Colors.orange),
            ),
            new ListTile(
              title: new Text("Item =&gt; 1"),
              onTap: () {
                Navigator.pop(context);
                Navigator.push(context,
                    new MaterialPageRoute(builder: (context) =&gt; new HomePage()));
              },
            ),
          ],
        )),
      );
    }
  }
  </code></pre>
  
  <p><strong>Update:</strong> The drawer should get user details from the login page, and I guess that the issue here is related to the fact that the drawer is called from a separate home scaffold, that's why at the beginning it covers its whole area despite 85% of the screen area is set in the code.</p>
  
  <p><a href="https://i.stack.imgur.com/D6NNR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D6NNR.png" alt="enter image description here"></a></p>
  
  <p>I have tried <a href="https://stackoverflow.com/questions/51174594/is-there-any-alternative-way-to-change-the-scaffold-drawer-width?answertab=votes#tab-top">this solution too</a> but didn't work, any suggestion ?</p>