title: Flutter expand Container to fill remaining space of Row
body: <p>I have one image in a row and a text next to that image. I want the row to expand fully and image takes as its size, then remain full area should be taken by Container.</p>
  <p>Here is my code snippet:</p>
  <pre><code>Row(
          children: &lt;Widget&gt;[
            Container(
              margin: EdgeInsets.fromLTRB(10, 50, 10, 8),
              decoration: BoxDecoration(
                color: Colors.white,
                boxShadow: [
                  BoxShadow(
                    color: Color.fromARGB(100, 0, 0, 0),
                    blurRadius: 5,
                  ),
                ],
              ),
              child: Row(
                mainAxisSize: MainAxisSize.max,
                children: &lt;Widget&gt;[
                  Column(children: &lt;Widget&gt;[
                    Image.asset(
                      'assets/card.png',
                      height: 62,
                      width: 62,
                      fit: BoxFit.cover,
                    )
                  ]),
                  Container(
                    child: Text(&quot;Hello world&quot;),
                  )
                ],
              ),
            ),
          ],
        ),
  </code></pre>
  <p>I want it like this:
  <img src="https://i.stack.imgur.com/jR82e.png" alt="Flutter UI" /></p>