Flutter ThemeData is not working for the Text

Posted by Andre Scott | Updated on

Flutter ThemeData is not working for the Text. Text does not use Theme. Theme is material design specific, while Text is general purpose.

What Text uses is DefaultTextStyle, which is edited by MaterialApp (or some other widgets such as AppBar) with values from the Theme.

The following should work:


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

Related Questions & Answers