title: How to make a box that will Expand to fit content, but stop expanding when remaining space is filled?
body: <p>I'm in flutter. I have a <code>layout</code>, which has a <code>pageview.builder</code>, and each page shows a card. I'd like the card to fit the content, expanding for cards with more content, up until the card fills the rest of the page, at which point I'd want to it start scrolling. I've spent a few hours trying different nestings of <code>layouts</code>, but I can't work out the combination to achieve my desired effect.</p>
  
  <p>The <code>code</code> looks something like this :</p>
  
  <pre><code>child: new Column(
          children: [
  
            SizedBox(
              height: 25.0,
            ),
            Image.asset(
              "images/image.png",
              scale: 0.1,
              height: 100.0,
            ),
            new ConstrainedBox(
                constraints: BoxConstraints(maxHeight: 550.0),
                child: PageView.builder(
                  controller: PageController(viewportFraction: 0.9),
                  itemBuilder: (BuildContext context, int index){
                    DayInfo thisDay = AllDaysInfo[index];
                        child: Material(
                            child: new Text(thisDay.info),
                            )
                        )
                   )
          ]
  ),
  </code></pre>
  
  <p>(<code>parentheses</code> may not be correct! Have cut my code down code to make it a bit easier to see what I'm doing)</p>
  
  <p>So, I want to remove the <code>ConstrainedBox</code>, which is essentially forcing it to be <code>550</code> high. I want that to allow it to fill the remaining space, but stop growing when it gets there!</p>
  
  <p>Any ideas?</p>
  
  <p>Mike</p>