mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Add use_super_parameters lint (#1269)
This commit is contained in:
@@ -15,7 +15,7 @@ import 'package:linting_tool/theme/colors.dart';
|
||||
final navKey = GlobalKey<NavigatorState>();
|
||||
|
||||
class AdaptiveNav extends StatefulWidget {
|
||||
const AdaptiveNav({Key? key}) : super(key: key);
|
||||
const AdaptiveNav({super.key});
|
||||
|
||||
@override
|
||||
State<AdaptiveNav> createState() => _AdaptiveNavState();
|
||||
@@ -60,11 +60,10 @@ class _AdaptiveNavState extends State<AdaptiveNav> {
|
||||
|
||||
class _NavView extends StatefulWidget {
|
||||
const _NavView({
|
||||
Key? key,
|
||||
required this.extended,
|
||||
required this.destinations,
|
||||
this.trailing,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final bool extended;
|
||||
final List<_Destination> destinations;
|
||||
|
||||
@@ -15,8 +15,8 @@ class LintExpansionTile extends StatefulWidget {
|
||||
final Rule rule;
|
||||
const LintExpansionTile({
|
||||
required this.rule,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
State<LintExpansionTile> createState() => _LintExpansionTileState();
|
||||
@@ -171,9 +171,7 @@ enum ProfileType {
|
||||
}
|
||||
|
||||
class _ProfileTypeDialog extends StatelessWidget {
|
||||
const _ProfileTypeDialog({
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
const _ProfileTypeDialog();
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -209,8 +207,8 @@ class NewProfileDialog extends StatefulWidget {
|
||||
final Rule rule;
|
||||
const NewProfileDialog({
|
||||
required this.rule,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
State<NewProfileDialog> createState() => _NewProfileDialogState();
|
||||
@@ -276,9 +274,9 @@ class _NewProfileDialogState extends State<NewProfileDialog> {
|
||||
|
||||
class ExistingProfileDialog extends StatefulWidget {
|
||||
const ExistingProfileDialog({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.rule,
|
||||
}) : super(key: key);
|
||||
});
|
||||
|
||||
final Rule rule;
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ class SavedRuleTile extends StatefulWidget {
|
||||
final Rule rule;
|
||||
const SavedRuleTile({
|
||||
required this.rule,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
State<SavedRuleTile> createState() => _SavedRuleTileState();
|
||||
|
||||
Reference in New Issue
Block a user