title: Flutter. Row with MainAxisAlignment.spaceBetween overflowed
body: <p>I am new in flutter and I'm trying to implement screen like this:</p>
  <p><a href="https://i.stack.imgur.com/1poAu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1poAu.png" alt="enter image description here" /></a></p>
  <p>As you can see I need to make something like a table. I ran into a problem while implementing table rows. Here is my code:</p>
  <pre><code> Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Flexible(
                  child: Row(
                    mainAxisSize: MainAxisSize.min,
                    children: [
                      Text(&quot;2.&quot;, ),
                      const SizedBox(width: 10),
                      Text(text: &quot;This is second with very long text&quot;),
                    ],
                  ),
                ),
                const SizedBox(width: 8),
                Text(&quot;500&quot;),
              ],
            ),
  </code></pre>
  <p>But I'm getting the error:</p>
  <blockquote>
  <p>A RenderFlex overflowed by 42 pixels on the right.</p>
  </blockquote>
  <p>For some reason my text (&quot;This is second with very long text&quot;) doesn't move to a new line, but goes off screen.</p>
  <p>Please tell me what am I doing wrong?</p>