Flutter two text in a row with left one overflowing gracefully. If you prefer that the time widget is always on the right, you could wrap the subtitle text in an Expanded widget:
1 2 3 4 5 6 7 8 9 | Widget _listItemSubtitle(String subtitle){ return Expanded( child: Text( "[$subtitle]", softWrap: false, overflow: TextOverflow.fade, ), ); } |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.