2

I want to display this text word1 • word2 • word3 and I found that in this flutter doc there is a $middot constant but I cant find it inside the ascii.dart file . I also tried to define a const int $middot = 0x00B7; and use it in my text like word1 ${$middot} word2 ${$middot} word3, but the middot is simple ignored and I get word1 word2 word3

How can I achieve this?

1
  • Can the person downvoting please explain as to why the downvote and what could be improved? Commented May 13, 2020 at 7:09

2 Answers 2

6

I use this and it works:

const kInterPunctChr = '\u22C5';

final words = 'word1 $kInterPunctChr word2';
Sign up to request clarification or add additional context in comments.

1 Comment

But I think you made a typo. It should be $kInterPunctChr
2
Text(String.fromCharCode(9792);); 

You can find most of Unicode string over here unicodes

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.