DEV Community

Alexandre Freire
Alexandre Freire

Posted on

Quebra de linha em texto longo no Flutter

Aprenda como fazer quebra de linha em texto longo no Flutter.

final String someText = 
"stuff for the 1st paragraph\n\n"
"stuff for the 2nd paragraph\n\n"
"stuff for the 3rd paragraph\n\n";
Enter fullscreen mode Exit fullscreen mode

ou então você pode simplesmente renderizá-lo dentro de um Textwidget como normalmente faria.

Fonte: stackoverflow

Oldest comments (0)