andyduke / styled_text_package

Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.
https://pub.dev/packages/styled_text
BSD 3-Clause "New" or "Revised" License
75 stars 48 forks source link

New line character doesn't break text into new line #5

Closed LugonjaAleksandar closed 4 years ago

LugonjaAleksandar commented 4 years ago

When I want to format text like this: "First line text and <link>click here</link>.\n\nSecond line of text.\n\nThird line."

I expect that this text will be drawn in multiple lines, but what I see on my screen is that \n characters are completely ignored. Any ideas on how to overcome this difficulty and use line breaks?

andyduke commented 4 years ago

You need to use <br/> to break line.