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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user