Ayoob Khan
Ayoob Khan

Reputation: 1634

Add special characters in Flutter text How to show special characters in Text in flutter?

How can we add a unicode arrow in Flutter new Text('Arrow should come here').

enter image description here

Upvotes: 4

Views: 7644

Answers (2)

diegoveloper
diegoveloper

Reputation: 103421

Here you have:

Text("→"),

or

Text("\u{2192}"),

Upvotes: 7

Quick learner
Quick learner

Reputation: 11457

You can use Runes class which does not need any plugin

Example

You want to show right arrow and you know its unicode value ie U+1F802

Now to show it in text you can use Runes class and convert it to show arrow

Just need to use the unicode value after U+ ie 1F802 and then append it with \u

Usage

Text(new String.fromCharCodes(new Runes('\u1F802'))),

List of special charaters

Upvotes: 5

Related Questions