mirror of
https://github.com/flutter/samples.git
synced 2026-06-10 08:18:55 +00:00
Deps update, utilize super.key (#1265)
* Deps update, utilize `super.key` * `flutter format`
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user