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

@@ -13,7 +13,7 @@ void main() {
}
class TestingApp extends StatelessWidget {
const TestingApp({Key? key}) : super(key: key);
const TestingApp({super.key});
@override
Widget build(BuildContext context) {

View File

@@ -9,7 +9,7 @@ import 'package:testing_app/models/favorites.dart';
class FavoritesPage extends StatelessWidget {
static const routeName = '/favorites_page';
const FavoritesPage({Key? key}) : super(key: key);
const FavoritesPage({super.key});
@override
Widget build(BuildContext context) {
@@ -36,7 +36,7 @@ class FavoritesPage extends StatelessWidget {
class FavoriteItemTile extends StatelessWidget {
final int itemNo;
const FavoriteItemTile(this.itemNo, {Key? key}) : super(key: key);
const FavoriteItemTile(this.itemNo, {super.key});
@override
Widget build(BuildContext context) {

View File

@@ -10,7 +10,7 @@ import 'package:testing_app/screens/favorites.dart';
class HomePage extends StatelessWidget {
static const routeName = '/';
const HomePage({Key? key}) : super(key: key);
const HomePage({super.key});
@override
Widget build(BuildContext context) {
@@ -42,7 +42,7 @@ class HomePage extends StatelessWidget {
class ItemTile extends StatelessWidget {
final int itemNo;
const ItemTile(this.itemNo, {Key? key}) : super(key: key);
const ItemTile(this.itemNo, {super.key});
@override
Widget build(BuildContext context) {