title: Why Flutter Container does not respects its width and height constraints when it is inside other Container
body: <pre><code>Container(
    width: 200.0,
    height: 200.0,
    child: Container(
      width: 50.0,
      height: 50.0,
      decoration: BoxDecoration(
        shape: BoxShape.circle,
        color: Colors.red
      ),
    ),
  )
  </code></pre>
  
  <p>I've been trying to find the answer in the Container class docs but I did not find it.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>After a long time, I understood the problem.</p>
  
  <p>All views inside a layout must have width, height, x position, and y position. (This applies to Android, IOS, Flutter, etc)</p>
  
  <p>In my code, the inner container just has a width and height for that reason it doesn't know where to start painting.</p>
  
  <p>For that reason, if the container is placed inside an Alignment widget the container gets the x position and y position and it works.</p>