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

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

View File

@@ -7,7 +7,7 @@ import 'package:provider/provider.dart';
import 'package:provider_shopper/models/cart.dart';
class MyCart extends StatelessWidget {
const MyCart({Key? key}) : super(key: key);
const MyCart({super.key});
@override
Widget build(BuildContext context) {

View File

@@ -8,7 +8,7 @@ import 'package:provider_shopper/models/cart.dart';
import 'package:provider_shopper/models/catalog.dart';
class MyCatalog extends StatelessWidget {
const MyCatalog({Key? key}) : super(key: key);
const MyCatalog({super.key});
@override
Widget build(BuildContext context) {
@@ -30,7 +30,7 @@ class MyCatalog extends StatelessWidget {
class _AddButton extends StatelessWidget {
final Item item;
const _AddButton({required this.item, Key? key}) : super(key: key);
const _AddButton({required this.item});
@override
Widget build(BuildContext context) {
@@ -90,7 +90,7 @@ class _MyAppBar extends StatelessWidget {
class _MyListItem extends StatelessWidget {
final int index;
const _MyListItem(this.index, {Key? key}) : super(key: key);
const _MyListItem(this.index);
@override
Widget build(BuildContext context) {

View File

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class MyLogin extends StatelessWidget {
const MyLogin({Key? key}) : super(key: key);
const MyLogin({super.key});
@override
Widget build(BuildContext context) {