xxxxxxxxxx
Row(
children: [
Flexible(
child: Text('Add long text here',
maxLines: 1,
softWrap: false,
overflow: TextOverflow.fade,
),
),
],
)
xxxxxxxxxx
Text(
'Hello, \n How are you?',
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontWeight: FontWeight.bold),
)
xxxxxxxxxx
For me i feel like setting 'softWrap:true' with a 'maxLines: 2/3/4' does the
trick of wrapping the text till the set maxlines. Make sure to use
Expaded to utilize full width of the device.