0

I am having a string which is hardcoded now (which would be fetched from database in future). I want some parts of the strings to be bold while its stored rather than use rich text (as it would be random with different text). Is there any way to store it as bold using some escape sequences ?

Also is hyper link possible in string in flutter.

Thanks in advance.

1 Answers1

0

I don't think that's possible. But if you have control over the input's format, what you can do is style it using markdown and use the flutter_markdown package to render it.

For hyperlinks, see this answer to do it with RichText. Markdown supports hyperlinks though.

MickaelHrndz
  • 3,604
  • 1
  • 13
  • 23