1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-20 05:52:21 +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

@@ -5,7 +5,7 @@
import 'package:flutter/material.dart';
class FocusImageDemo extends StatelessWidget {
const FocusImageDemo({Key? key}) : super(key: key);
const FocusImageDemo({super.key});
static String routeName = '/misc/focus_image';
@override
@@ -18,7 +18,7 @@ class FocusImageDemo extends StatelessWidget {
}
class Grid extends StatelessWidget {
const Grid({Key? key}) : super(key: key);
const Grid({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
@@ -72,7 +72,7 @@ Tween<RelativeRect> _createTween(BuildContext context) {
}
class SmallCard extends StatelessWidget {
const SmallCard({required this.imageAssetName, Key? key}) : super(key: key);
const SmallCard({required this.imageAssetName, super.key});
final String imageAssetName;
@override