diff --git a/engine/src/flutter/examples/glfw/main.dart b/engine/src/flutter/examples/glfw/main.dart index 4b8f5dde93..f1e74ab50b 100644 --- a/engine/src/flutter/examples/glfw/main.dart +++ b/engine/src/flutter/examples/glfw/main.dart @@ -37,7 +37,7 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatefulWidget { - MyHomePage({Key key, this.title}) : super(key: key); + MyHomePage({Key? key, required this.title}) : super(key: key); // This widget is the home page of your application. It is stateful, meaning // that it has a State object (defined below) that contains fields that affect @@ -107,7 +107,7 @@ class _MyHomePageState extends State { ), Text( '$_counter', - style: Theme.of(context).textTheme.display1, + style: Theme.of(context).textTheme.headline4, ), ], ),