1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-30 19:08:56 +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

@@ -12,7 +12,7 @@ import 'package:veggieseasons/widgets/close_button.dart';
import 'package:veggieseasons/widgets/trivia.dart';
class ServingInfoChart extends StatelessWidget {
const ServingInfoChart(this.veggie, this.prefs, {Key? key}) : super(key: key);
const ServingInfoChart(this.veggie, this.prefs, {super.key});
final Veggie veggie;
@@ -157,7 +157,7 @@ class ServingInfoChart extends StatelessWidget {
class InfoView extends StatelessWidget {
final int? id;
const InfoView(this.id, {Key? key}) : super(key: key);
const InfoView(this.id, {super.key});
@override
Widget build(BuildContext context) {
@@ -238,8 +238,7 @@ class DetailsScreen extends StatefulWidget {
final int? id;
final String? restorationId;
const DetailsScreen({this.id, this.restorationId, Key? key})
: super(key: key);
const DetailsScreen({this.id, this.restorationId, super.key});
static String show(NavigatorState navigator, int veggieId) {
return navigator.restorablePush<void>(_routeBuilder, arguments: veggieId);

View File

@@ -9,7 +9,7 @@ import 'package:veggieseasons/data/veggie.dart';
import 'package:veggieseasons/widgets/veggie_headline.dart';
class FavoritesScreen extends StatelessWidget {
const FavoritesScreen({this.restorationId, Key? key}) : super(key: key);
const FavoritesScreen({this.restorationId, super.key});
final String? restorationId;

View File

@@ -9,7 +9,7 @@ import 'package:veggieseasons/screens/search.dart';
import 'package:veggieseasons/screens/settings.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({Key? key, this.restorationId}) : super(key: key);
const HomeScreen({super.key, this.restorationId});
final String? restorationId;

View File

@@ -13,7 +13,7 @@ import 'package:veggieseasons/styles.dart';
import 'package:veggieseasons/widgets/veggie_card.dart';
class ListScreen extends StatelessWidget {
const ListScreen({this.restorationId, Key? key}) : super(key: key);
const ListScreen({this.restorationId, super.key});
final String? restorationId;

View File

@@ -10,7 +10,7 @@ import 'package:veggieseasons/data/veggie.dart';
import 'package:veggieseasons/widgets/veggie_headline.dart';
class SearchScreen extends StatefulWidget {
const SearchScreen({this.restorationId, Key? key}) : super(key: key);
const SearchScreen({this.restorationId, super.key});
final String? restorationId;

View File

@@ -11,8 +11,7 @@ import 'package:veggieseasons/widgets/settings_group.dart';
import 'package:veggieseasons/widgets/settings_item.dart';
class VeggieCategorySettingsScreen extends StatelessWidget {
const VeggieCategorySettingsScreen({Key? key, this.restorationId})
: super(key: key);
const VeggieCategorySettingsScreen({super.key, this.restorationId});
final String? restorationId;
@@ -92,7 +91,7 @@ class VeggieCategorySettingsScreen extends StatelessWidget {
}
class CalorieSettingsScreen extends StatelessWidget {
const CalorieSettingsScreen({Key? key, this.restorationId}) : super(key: key);
const CalorieSettingsScreen({super.key, this.restorationId});
final String? restorationId;
@@ -167,7 +166,7 @@ class CalorieSettingsScreen extends StatelessWidget {
}
class SettingsScreen extends StatefulWidget {
const SettingsScreen({this.restorationId, Key? key}) : super(key: key);
const SettingsScreen({this.restorationId, super.key});
final String? restorationId;