mirror of
https://github.com/flutter/samples.git
synced 2026-04-01 09:13:23 +00:00
Add use_super_parameters lint (#1269)
This commit is contained in:
@@ -11,7 +11,7 @@ import '../app.dart';
|
||||
import 'edit_entry.dart';
|
||||
|
||||
class NewCategoryDialog extends StatelessWidget {
|
||||
const NewCategoryDialog({Key? key}) : super(key: key);
|
||||
const NewCategoryDialog({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -29,8 +29,8 @@ class EditCategoryDialog extends StatelessWidget {
|
||||
|
||||
const EditCategoryDialog({
|
||||
required this.category,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -54,7 +54,7 @@ class EditCategoryDialog extends StatelessWidget {
|
||||
}
|
||||
|
||||
class NewEntryDialog extends StatefulWidget {
|
||||
const NewEntryDialog({Key? key}) : super(key: key);
|
||||
const NewEntryDialog({super.key});
|
||||
|
||||
@override
|
||||
State<NewEntryDialog> createState() => _NewEntryDialogState();
|
||||
@@ -79,8 +79,8 @@ class EditEntryDialog extends StatelessWidget {
|
||||
const EditEntryDialog({
|
||||
this.category,
|
||||
this.entry,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user