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

3,485

Solution 1

Here you have:

Text("→"),

or

Text("\u{2192}"),

Solution 2

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

Share:
3,485
Ayoob Khan
Author by

Ayoob Khan

Updated on December 08, 2022

Comments

  • Ayoob Khan
    Ayoob Khan over 1 year

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

    enter image description here