How do I get two side-by-side Text widgets to only allow the left-most one to overflow gracefully?
One text widget in a column is easy to overflow gracefully. Two text wi
You can use the Flexible
widget:
Widget _listItemSubtitle(String subtitle) {
return new Flexible(
fit: FlexFit.loose,
child: Text(
"[$subtitle]",
softWrap: false,
overflow: TextOverflow.fade,
),
);
}
Alternative:
If you prefer that the time widget is always on the right, you could wrap the subtitle text in an Expanded
widget:
Widget _listItemSubtitle(String subtitle){
return Expanded(
child: Text(
"[$subtitle]",
softWrap: false,
overflow: TextOverflow.fade,
),
);
}