title: Expand a widget until it reaches the minHeight of it's parent
body: <p>I want to expand a container to fill the space until it reaches parent's <code>minHeight</code>. Right now it automatically expands to <code>maxHeight</code> and <code>minHeight</code> is ignored because of it.</p>
  <p>My example is below. I want the grey bar that is right below the blue part to be at the bottom of the red part. If I put a <code>Spacer</code> or <code>Expanded</code> after the blue container it expands the whole modal bottom sheet to it's <code>maxSize</code>. I also tried using <code>Align</code> widget on the grey bar but it doesn't change it's position at all.</p>
  <p><a href="https://i.stack.imgur.com/0WNuW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0WNuWl.png" alt="example of the problem" /></a></p>
  <p>Code that produces the UI above:</p>
  <pre><code>Container(
            color: Colors.red,
            child: Column(
              mainAxisSize: MainAxisSize.min,
              children: [
                Padding(
                  padding: ScrPaddings.top8Padding,
                  child: HorizontalBarIndicator(
                    width:
                        ScrPaddings(context).screenWidthRelativeTo390(32.0),
                  ),
                ),
                Container(
                  color: Colors.blue,
                  child: ChatListView(
                    conversation: state.conversation,
                    showPendingAnimationBubble: true,
                  ),
                ),
                Padding(
                  padding: ScrPaddings.bottom8Padding,
                  child: HorizontalBarIndicator(
                    width:
                        ScrPaddings(context).screenWidthRelativeTo390(134.0),
                  ),
                ),
              ],
            ),
          ),
  </code></pre>