title: Flutter - How to control profile image size in the drawer
body: <p>I would like to control the profile image size, and get it rounded instead of oval as shown below.</p>
  
  <p>Changing the height and/or the width values doesn't affect neither the size nor the ratio, also the weird thing is when I change the margin parameter it changes the oval shape radius.</p>
  
  <pre><code>new UserAccountsDrawerHeader(
    decoration: BoxDecoration(color: Colors.white),
    currentAccountPicture: new Container(
      margin: const EdgeInsets.only(bottom: 40.0),
      width: 10.0,
      height: 10.0,
      decoration: new BoxDecoration(
        shape: BoxShape.circle,
        image: new DecorationImage(
          fit: BoxFit.fill,
          image: new NetworkImage(
            "https://example.com/assets/images/john-doe.jpg",
          ),
        ),
      ),
    ),
    accountName: new Container(
      ...
    ),
    accountEmail: new Container(
      ...
    ),
    onDetailsPressed: () {
      ...
    },
  ),
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/uDFSd.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/uDFSd.jpg" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong ?</p>
  
  <p><strong>Update</strong>: The above way of doing is a workaround to the CircleAvatar that didn't give any control on the image size. If you tried CircleAvatar in some different way that gives control on image size, please share it to help.</p>