text show in multiple lines flutter code example
Example 1: how to flutter multiple line text
Container(
width: 150,
child: Text(
"This text is very very very very very very very very very very very very very very very very very very very very very very very very very long",
overflow: TextOverflow.ellipsis,
maxLines: 5,
),
),
Example 2: multiline text flutter
Text(
"TOP ADDED",
textAlign: TextAlign.justify,
overflow: TextOverflow.ellipsis,
style: TextStyle(fontSize: 18.0),
maxLines: 2,)