1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-25 00:11:49 +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

@@ -10,7 +10,7 @@ import '../app.dart';
import '../widgets/category_chart.dart';
class DashboardPage extends StatelessWidget {
const DashboardPage({Key? key}) : super(key: key);
const DashboardPage({super.key});
@override
Widget build(BuildContext context) {
@@ -43,7 +43,7 @@ class DashboardPage extends StatelessWidget {
class Dashboard extends StatelessWidget {
final List<Category>? categories;
const Dashboard(this.categories, {Key? key}) : super(key: key);
const Dashboard(this.categories, {super.key});
@override
Widget build(BuildContext context) {