How to add icon to text in flutter?

Posted by Rohit Kumar | Updated on

In this example, I will share how to add icon to text in flutter? Using RichText you can mix TextSpans with WidgetSpans. WidgetSpan allows you to place any Flutter widget inline with the text.

Here is an example:

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers