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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user