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:
style: TextStyle(fontSize: 40),
child: Text("Hello World"),
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.