RichText does not style text as expected

Posted by Andre Scott | Updated on

RichText does not style text as expected. The usage of DefaultTextStyle.of(context) would look if there is any DefaultTextStyle parent and fetch style from the parent. So, try wrapping the whole HomePage widget in a DefaultTextStyle widget with some style. Or make RichText a separate widget and wrap in DefaultTextStyle.

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