Fix GLFW example to work with current Dart SDK (flutter/engine#28670)

This commit is contained in:
Brandon DeRosier
2021-09-16 14:57:02 -07:00
committed by GitHub
parent 3b08959857
commit 639395d577

View File

@@ -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<MyHomePage> {
),
Text(
'$_counter',
style: Theme.of(context).textTheme.display1,
style: Theme.of(context).textTheme.headline4,
),
],
),