Closed Fabio-Paccosi closed 3 years ago
When I try to show styled text I cannot see apostrophe character:
`StyledText( text: "Bell'articolo", TextAlign: TextAlign.left, style: ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16), styles: { //Text styles 'u': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_underline: true), 'b': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_bold: true), 'i': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_italic: true), }, )*
Return this: "bellarticolo"
When I use standard Flutter Text() class I see "Bell'articolo" correctly.
Have you ever encountered this problem?
Thanks
@Fabio-Paccosi Some characters need to be escaped, see here - https://pub.dev/documentation/styled_text/latest/styled_text/StyledText/text.html
Thank you! I can close this issue
When I try to show styled text I cannot see apostrophe character:
`StyledText( text: "Bell'articolo", TextAlign: TextAlign.left, style: ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16), styles: { //Text styles 'u': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_underline: true), 'b': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_bold: true), 'i': ArticleTextStyle.getAbstractStyle(text_color: "#000000", font_size: 16, is_italic: true), }, )*
Return this: "bellarticolo"
When I use standard Flutter Text() class I see "Bell'articolo" correctly.
Have you ever encountered this problem?
Thanks