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:
@@ -22,7 +22,7 @@ Future<void> main() async {
|
||||
|
||||
/* Main widget that contains the Flutter starter app. */
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({Key? key}) : super(key: key);
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -37,7 +37,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;
|
||||
|
||||
@@ -85,7 +85,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
|
||||
/* A Flutter implementation of the last frame of the splashscreen animation */
|
||||
class CustomAppBar extends StatelessWidget {
|
||||
const CustomAppBar({Key? key}) : super(key: key);
|
||||
const CustomAppBar({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user