new line in flutter text 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 field next line
TextField(
keyboardType: TextInputType.multiline,
maxLines: null,
)