mirror of
https://github.com/flutter/samples.git
synced 2025-11-12 15:58:32 +00:00
Add use_super_parameters lint (#1269)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import '../widgets/categories_dropdown.dart';
|
||||
import '../widgets/dialogs.dart';
|
||||
|
||||
class EntriesPage extends StatefulWidget {
|
||||
const EntriesPage({Key? key}) : super(key: key);
|
||||
const EntriesPage({super.key});
|
||||
|
||||
@override
|
||||
State<EntriesPage> createState() => _EntriesPageState();
|
||||
@@ -102,8 +102,8 @@ class EntryTile extends StatelessWidget {
|
||||
const EntryTile({
|
||||
this.category,
|
||||
this.entry,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -16,8 +16,8 @@ class HomePage extends StatefulWidget {
|
||||
|
||||
const HomePage({
|
||||
required this.onSignOut,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
State<HomePage> createState() => _HomePageState();
|
||||
|
||||
@@ -13,8 +13,8 @@ class SignInPage extends StatelessWidget {
|
||||
const SignInPage({
|
||||
required this.auth,
|
||||
required this.onSuccess,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -33,8 +33,8 @@ class SignInButton extends StatefulWidget {
|
||||
const SignInButton({
|
||||
required this.auth,
|
||||
required this.onSuccess,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
State<SignInButton> createState() => _SignInButtonState();
|
||||
|
||||
Reference in New Issue
Block a user