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,8 +14,8 @@ class FrostyBackground extends StatelessWidget {
this.color,
this.intensity = 25,
this.child,
Key? key,
}) : super(key: key);
super.key,
});
final Color? color;
final double intensity;
@@ -48,8 +48,8 @@ class PressableCard extends StatefulWidget {
this.shadowColor = CupertinoColors.black,
this.duration = const Duration(milliseconds: 100),
this.onPressed,
Key? key,
}) : super(key: key);
super.key,
});
final VoidCallback? onPressed;
@@ -101,8 +101,7 @@ class _PressableCardState extends State<PressableCard> {
class VeggieCard extends StatelessWidget {
const VeggieCard(this.veggie, this.isInSeason, this.isPreferredCategory,
{Key? key})
: super(key: key);
{super.key});
/// Veggie to be displayed by the card.
final Veggie veggie;