I have in the database a string with multiple lines, like this:
"lorem ipsum \n\n another lines \n\n another line".
When I try to display the text in a text widget, only the first line gets shown, even if I have multiline set to null or a high value. I've read there is a way in Dart String to have a multiline text with ''' or """, but how to apply that to a string that I read in from the database?
Example:
Widget build(BuildContext context) {
textFromDatabase = "lorem ipsum \n\n another line \n\n another line";
return Text(textFromDatabase);
}
Will display only "lorem ipsum".