1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Add use_super_parameters lint (#1269)

This commit is contained in:
Brett Morgan
2022-05-17 02:53:27 -07:00
committed by GitHub
parent 58bc5d7a58
commit 3a0a652984
33 changed files with 90 additions and 100 deletions

View File

@@ -15,7 +15,7 @@ void topMain() => runApp(const MyApp(color: Colors.green));
void bottomMain() => runApp(const MyApp(color: Colors.purple));
class MyApp extends StatelessWidget {
const MyApp({Key? key, required this.color}) : super(key: key);
const MyApp({super.key, required this.color});
final MaterialColor color;
@@ -32,7 +32,7 @@ class MyApp extends StatelessWidget {
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
const MyHomePage({super.key, required this.title});
final String title;
@override