1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-16 11:58:47 +00:00

Adjust animations lint rules (#814)

This commit is contained in:
Brett Morgan
2021-06-08 09:00:06 +10:00
committed by GitHub
parent 12ba3b2245
commit b1a49c0afb
28 changed files with 75 additions and 46 deletions

View File

@@ -6,6 +6,7 @@ import 'package:flutter/material.dart';
import 'package:flutter/physics.dart';
class PhysicsCardDragDemo extends StatelessWidget {
const PhysicsCardDragDemo({Key? key}) : super(key: key);
static const String routeName = '/misc/physics_card';
@override
@@ -26,8 +27,8 @@ class PhysicsCardDragDemo extends StatelessWidget {
/// A draggable card that moves back to [Alignment.center] when it's
/// released.
class DraggableCard extends StatefulWidget {
const DraggableCard({required this.child, Key? key}) : super(key: key);
final Widget child;
const DraggableCard({required this.child});
@override
_DraggableCardState createState() => _DraggableCardState();