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:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user