I always have problems with UI in flutter, especially when going to rows/colums and their size. Basically what I have is A Row with a picture and a column in it. The first thing I want to have is a Row with MainAxisAllignment.Spacebetween, so that TextA and TextB are as far away from each other as possible. I cannot have two columns, because then the TextD, which can be pretty long, would push TextB off screen. i tried around with some expanded, flexible and mainaxissize, but I have honestly no idea how this should be done.
Usually I'd MSPaint but I'm on a Mac and don't know of anything as perfect as paint, so here my beautiful Drawing of what it looks like. the 'should' state will be TextB on the different end of the inner row
|---------------------------------------------------|
| I |--------------------------------------------||
| M | |TextATextB| ||
| A | |-Row------| ||
| G | TextC ||
| E | TextD ||
| |-Column-------------------------------------||
|-Row-----------------------------------------------|
Row(
children: <Widget>[
Image.network(
picture,
height: 63,
),
SizedBox(
width: 6,
),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(_viewModel.time),
Text(_viewModel.session),
],
),
Text(_viewModel.room),
SizedBox(
height: 2,
),
Text(
_viewModel.title,
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: TextStyle(fontWeight: FontWeight.w900),
),
],
),
],
),
And this is the code on how I did this widget. Thanks!
edit: with Excel i made a hopefully not confusing version. basically: i wanna make the row as long as the column is wide

