mirror of
https://github.com/flutter/samples.git
synced 2025-11-11 23:39:14 +00:00
Deps update, utilize super.key (#1265)
* Deps update, utilize `super.key` * `flutter format`
This commit is contained in:
@@ -16,7 +16,7 @@ import 'package:veggieseasons/styles.dart';
|
||||
typedef SettingsItemCallback = FutureOr<void> Function();
|
||||
|
||||
class SettingsNavigationIndicator extends StatelessWidget {
|
||||
const SettingsNavigationIndicator({Key? key}) : super(key: key);
|
||||
const SettingsNavigationIndicator({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -33,8 +33,8 @@ class SettingsIcon extends StatelessWidget {
|
||||
required this.icon,
|
||||
this.foregroundColor = CupertinoColors.white,
|
||||
this.backgroundColor = CupertinoColors.black,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
final Color backgroundColor;
|
||||
final Color foregroundColor;
|
||||
@@ -65,8 +65,8 @@ class SettingsItem extends StatefulWidget {
|
||||
this.content,
|
||||
this.subtitle,
|
||||
this.onPress,
|
||||
Key? key,
|
||||
}) : super(key: key);
|
||||
super.key,
|
||||
});
|
||||
|
||||
final String label;
|
||||
final Widget? icon;
|
||||
|
||||
Reference in New Issue
Block a user