1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-03 04:58:50 +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

@@ -11,8 +11,8 @@ import 'package:veggieseasons/styles.dart';
class FrostedBox extends StatelessWidget {
const FrostedBox({
this.child,
Key? key,
}) : super(key: key);
super.key,
});
final Widget? child;
@@ -36,9 +36,9 @@ class ColorChangingIcon extends ImplicitlyAnimatedWidget {
this.icon, {
this.color = CupertinoColors.black,
this.size,
required Duration duration,
Key? key,
}) : super(key: key, duration: duration);
required super.duration,
super.key,
});
final Color color;
@@ -77,7 +77,7 @@ class _ColorChangingIconState
/// A simple "close this modal" button that invokes a callback when pressed.
class CloseButton extends StatefulWidget {
const CloseButton(this.onPressed, {Key? key}) : super(key: key);
const CloseButton(this.onPressed, {super.key});
final VoidCallback onPressed;