I want to make the following white box to fill the vertical space , I set mainAxisAlignment: MainAxisAlignment.spaceBetween
, I want to put the title at top and the description at bottom of the white box
I don't want to explicitly set the height to the white box , I just want force it to fill space
Container(
color: Colors.blueGrey,
padding: EdgeInsets.all(8),
margin: EdgeInsets.all(8),
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Flexible(
child: Container(
color: Colors.white,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text('Title'),
Text(
'Description Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been ',
style: TextStyle(fontSize: 10),
),
],
),
),
),
Column(
children: <Widget>[
CircleAvatar(
child: Text('AH'),
backgroundColor: Colors.deepOrangeAccent,
radius: 50,
)
],
),
],
),
Icon(Icons.email)
],
),
),
Current result :
Expected result
I am not looking for a solution just works! I am learning flutter And I want to know why Row
cannot extend height