I want to expand a container to fill the space until it reaches parent's minHeight. Right now it automatically expands to maxHeight and minHeight is ignored because of it.
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 Spacer or Expanded after the blue container it expands the whole modal bottom sheet to it's maxSize. I also tried using Align widget on the grey bar but it doesn't change it's position at all.
Code that produces the UI above:
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),
),
),
],
),
),
