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 support? #4

Closed liudonghua123 closed 4 years ago

liudonghua123 commented 4 years ago

I have text with new line break, but the text are all together.

andyduke commented 4 years ago

I have text with new line break, but the text are all together.

What do you use to separate lines: \n or <br/> tag?

liudonghua123 commented 4 years ago

I use multi line string like the following, I think it have the same meaning as \n.

var str1 = '''This is a
multi line string.
The third line.''';
andyduke commented 4 years ago

You need to insert the <br/> tag in the places where you want to have line breaks.