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

@@ -6,7 +6,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
class CardSwipeDemo extends StatefulWidget {
const CardSwipeDemo({Key? key}) : super(key: key);
const CardSwipeDemo({super.key});
static String routeName = '/misc/card_swipe';
@override
@@ -77,7 +77,7 @@ class _CardSwipeDemoState extends State<CardSwipeDemo> {
class Card extends StatelessWidget {
final String imageAssetName;
const Card({required this.imageAssetName, Key? key}) : super(key: key);
const Card({required this.imageAssetName, super.key});
@override
Widget build(BuildContext context) {
@@ -101,8 +101,7 @@ class SwipeableCard extends StatefulWidget {
final VoidCallback onSwiped;
const SwipeableCard(
{required this.onSwiped, required this.imageAssetName, Key? key})
: super(key: key);
{required this.onSwiped, required this.imageAssetName, super.key});
@override
State<SwipeableCard> createState() => _SwipeableCardState();