wrap text in row flutter code example
Example 1: text overflow in new line in flutter
Row(
children: [
Flexible(
child: Text('Add long text here',
maxLines: 1,
softWrap: false,
overflow: TextOverflow.fade,
),
),
],
)
Example 2: flutter text in row not wrapping
Expanded(
child: new Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
new Text(_name, style: Theme.of(context).textTheme.subhead),
new Container(
margin: const EdgeInsets.only(top: 5.0),
child: new Text(text),
),
],
),