1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-14 03:19:06 +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

@@ -17,7 +17,7 @@ void showCustomNameDialog(BuildContext context) {
class CustomNameDialog extends StatefulWidget {
final Animation<double> animation;
const CustomNameDialog({required this.animation, Key? key}) : super(key: key);
const CustomNameDialog({required this.animation, super.key});
@override
State<CustomNameDialog> createState() => _CustomNameDialogState();

View File

@@ -14,7 +14,7 @@ import 'custom_name_dialog.dart';
import 'settings.dart';
class SettingsScreen extends StatelessWidget {
const SettingsScreen({Key? key}) : super(key: key);
const SettingsScreen({super.key});
static const _gap = SizedBox(height: 60);
@@ -115,7 +115,7 @@ class SettingsScreen extends StatelessWidget {
class _NameChangeLine extends StatelessWidget {
final String title;
const _NameChangeLine(this.title, {Key? key}) : super(key: key);
const _NameChangeLine(this.title);
@override
Widget build(BuildContext context) {
@@ -159,8 +159,7 @@ class _SettingsLine extends StatelessWidget {
final VoidCallback? onSelected;
const _SettingsLine(this.title, this.icon, {this.onSelected, Key? key})
: super(key: key);
const _SettingsLine(this.title, this.icon, {this.onSelected});
@override
Widget build(BuildContext context) {