title: Why when I set height are double.infinity ,It shows a bug in the display?
body: <p>My code look like this </p>
  
  <pre><code>  get _pdfViewer{
      if(pathPDF != null) return Container(
        child: PdfViewer(
          filePath: pathPDF,
        ),
        color: Colors.red,
      );
      else return Container(height: 30,color: Colors.blueAccent,);
    }
  Column(
          children: &lt;Widget&gt;[
            Flex(
              direction: Axis.horizontal,
              children: &lt;Widget&gt;[
                Expanded(
                  flex: 7,
                  child:  Container(
                    height: 500,
                    color: Colors.blueAccent,
                    child: _pdfViewer,
                  ),
                ),
                Expanded(
                  flex: 1,
                  child:Container(
                    height:500,
                    color: Colors.green,
                  )
                ),
              ],
            )
          ],
        );
  </code></pre>
  
  <p>In the code has twice heights, when i make the height to  <strong>double.infinity</strong> its worry(error) look like this:
  <a href="https://i.stack.imgur.com/1lu62.png" rel="nofollow noreferrer">image</a></p>
  
  <p>I want to max of the screen in the application.what should i do?</p>