1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +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

@@ -37,7 +37,7 @@ void setupWindow() {
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
const MyApp({super.key});
@override
Widget build(BuildContext context) {
@@ -52,7 +52,7 @@ class MyApp extends StatelessWidget {
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key}) : super(key: key);
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {

View File

@@ -11,7 +11,7 @@ import 'api/item.dart';
class ItemTile extends StatelessWidget {
final Item item;
const ItemTile({required this.item, Key? key}) : super(key: key);
const ItemTile({required this.item, super.key});
@override
Widget build(BuildContext context) {
@@ -34,7 +34,7 @@ class ItemTile extends StatelessWidget {
/// This is the widget responsible for building the "still loading" item
/// in the list (represented with "..." and a crossed square).
class LoadingItemTile extends StatelessWidget {
const LoadingItemTile({Key? key}) : super(key: key);
const LoadingItemTile({super.key});
@override
Widget build(BuildContext context) {