1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 23:08:59 +00:00

Deps update, utilize super.key (#1265)

* Deps update, utilize `super.key`

* `flutter format`
This commit is contained in:
Brett Morgan
2022-05-13 12:31:56 -07:00
committed by GitHub
parent 52ef797b9a
commit 58bc5d7a58
244 changed files with 449 additions and 500 deletions

View File

@@ -14,7 +14,7 @@ import 'settings_item.dart';
// See https://github.com/flutter/flutter/projects/29 for more info.
class SettingsGroupHeader extends StatelessWidget {
const SettingsGroupHeader(this.title, {Key? key}) : super(key: key);
const SettingsGroupHeader(this.title, {super.key});
final String title;
@@ -35,7 +35,7 @@ class SettingsGroupHeader extends StatelessWidget {
}
class SettingsGroupFooter extends StatelessWidget {
const SettingsGroupFooter(this.title, {Key? key}) : super(key: key);
const SettingsGroupFooter(this.title, {super.key});
final String title;
@@ -58,9 +58,8 @@ class SettingsGroup extends StatelessWidget {
required this.items,
this.header,
this.footer,
Key? key,
}) : assert(items.isNotEmpty),
super(key: key);
super.key,
}) : assert(items.isNotEmpty);
final List<SettingsItem> items;
final Widget? header;