【Flutter】Textのデフォルトフォントサイズを変更する(ThemeData)

#プログラミング#アプリ開発#Flutter#dart
Textのstyleを指定していない場合、デフォルトのフォントサイズが適用されます。
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const <Widget>[
Text('A',),
Text('B',),
Text('C',),
],
),

デフォルトのフォントサイズはMaterialApp内のThemeDataのtextThemeプロパティに追記することで変更することができます。
theme: ThemeData(
textTheme: const TextTheme(
bodyText2: TextStyle(fontSize: 30)
),
