title: Flutter Why is container width not honoured?
body: <p>I'm trying to create a circle image. Unfortunately, the width of the container is not honoured and I can't figure out why. What am I missing?</p>
  
  <p><a href="https://i.stack.imgur.com/eLmku.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eLmku.png" alt="enter image description here"></a></p>
  
  <pre><code>Drawer _getDrawer(List&lt;Job&gt; data) {
    return 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;[
          _getDrawerHeader(),
          ListTile(
            title: Text('Item 1'),
            onTap: () {
              // Update the state of the app
              // ...
            },
          ),
          ListTile(
            title: Text('Item 2'),
            onTap: () {
              // Update the state of the app
              // ...
            },
          ),
        ],
      ),
    );
  }
  
  DrawerHeader _getDrawerHeader() {
    return DrawerHeader(
      child: StreamBuilder(
          stream: FirebaseAuth.instance.currentUser().asStream(),
          builder: (context, AsyncSnapshot&lt;FirebaseUser&gt; snapshot) {
            if (snapshot.hasData) {
              return ListView(
                children: &lt;Widget&gt;[
                  _getCircleImage(snapshot.data.photoUrl),
                  Text('test'),
                  Text('test'),
                ],
              );
            }
            return Center(child: CircularProgressIndicator());
          }),
      decoration: BoxDecoration(
        color: Colors.blue,
      ),
    );
  }
  
  _getCircleImage(String url) {
    return Container(
      width: 64.0,
      height: 64.0,
      decoration: new BoxDecoration(
        image: new DecorationImage(
          image: new NetworkImage(url),
          fit: BoxFit.cover,
        ),
        shape: BoxShape.circle,
      ),
    );
  }
  </code></pre>