Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 687
Ayoob Khan Avatar asked Dec 17 '22 19:12

Ayoob Khan


2 Answers

Here you have:

Text("→"),

or

Text("\u{2192}"),
like image 86
diegoveloper Avatar answered Dec 21 '22 11:12

diegoveloper


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

like image 35
Quick learner Avatar answered Dec 21 '22 11:12

Quick learner