jeanvaljean
jeanvaljean

Reputation: 3

Flutter How to user special text to text widget?

hello I wonder how to use U+00B7 this unicode on flutter text widget

I want to use this text. How can I use unicode on flutter Text widget? thank you so much

Upvotes: 0

Views: 156

Answers (3)

Hendrick
Hendrick

Reputation: 81

You can use unicode characters in the text widget simply by doing:

Text('\u{u00b7} example')

This allows unicode characters of greater length(4 and above)

Upvotes: 0

Himani
Himani

Reputation: 165

If you're getting the text from api. You can do this:

Text(utf8.decode(text.codeUnits)

Upvotes: 1

Gwhyyy
Gwhyyy

Reputation: 9166

you can use it simply like this :

 Text('\u00a9 example \u00B7'),

Upvotes: 0

Related Questions