forked from firka/flutter
Prepare more of dev for use_super_parameters (#101073)
This commit is contained in:
committed by
GitHub
parent
75baed585e
commit
ca2d60e8e2
@@ -15,7 +15,7 @@ void topMain() => runApp(const MyApp(Colors.green));
|
||||
void bottomMain() => runApp(const MyApp(Colors.purple));
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp(this.color, {Key? key}) : super(key: key);
|
||||
const MyApp(this.color, {super.key});
|
||||
|
||||
final Color color;
|
||||
|
||||
@@ -32,7 +32,7 @@ class MyApp extends StatelessWidget {
|
||||
}
|
||||
|
||||
class MyHomePage extends StatefulWidget {
|
||||
const MyHomePage({Key? key, this.title}) : super(key: key);
|
||||
const MyHomePage({super.key, this.title});
|
||||
final String? title;
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user