title: Flutter : How to set container size as wrap_content in Column
body: <p>I want to set <code>Container</code> size dynamic I mean <code>wrap_content</code> how to do in flutter?</p>
  
  <p>In below code <code>Container</code> take full width by default but I want to set width in <code>Container</code> as <code>Text()</code> long as</p>
  
  <pre><code>Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisSize: MainAxisSize.max,
        children: &lt;Widget&gt;[
          Container(
            margin: EdgeInsets.all(10),
            alignment: Alignment.center,
            color: Colors.orange[800],
            child: Text("Hello How are you"),
          ),
          Container(
            margin: EdgeInsets.all(10),
            alignment: Alignment.center,
            color: Colors.yellow[800],
            child: Text("Welcome"),
          )
        ],
      );
  </code></pre>
  
  <p>I get this :</p>
  
  <p><a href="https://i.stack.imgur.com/TDq3r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TDq3r.png" alt="enter image description here"></a></p>
  
  <p>But I Want this output :</p>
  
  <p><a href="https://i.stack.imgur.com/r98mq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/r98mq.png" alt="enter image description here"></a></p>