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