mirror of
https://github.com/flutter/samples.git
synced 2026-05-22 06:58:41 +00:00
Landing beta changes in master for the new stable release (#747)
This commit is contained in:
@@ -27,7 +27,7 @@ class PhysicsCardDragDemo extends StatelessWidget {
|
||||
/// released.
|
||||
class DraggableCard extends StatefulWidget {
|
||||
final Widget child;
|
||||
DraggableCard({this.child});
|
||||
DraggableCard({required this.child});
|
||||
|
||||
@override
|
||||
_DraggableCardState createState() => _DraggableCardState();
|
||||
@@ -35,7 +35,7 @@ class DraggableCard extends StatefulWidget {
|
||||
|
||||
class _DraggableCardState extends State<DraggableCard>
|
||||
with SingleTickerProviderStateMixin {
|
||||
AnimationController _controller;
|
||||
late final AnimationController _controller;
|
||||
|
||||
/// The alignment of the card as it is dragged or being animated.
|
||||
///
|
||||
@@ -44,7 +44,7 @@ class _DraggableCardState extends State<DraggableCard>
|
||||
/// this value is set to the value of the [_animation].
|
||||
var _dragAlignment = Alignment.center;
|
||||
|
||||
Animation<Alignment> _animation;
|
||||
late Animation<Alignment> _animation;
|
||||
|
||||
final _spring = const SpringDescription(
|
||||
mass: 10,
|
||||
|
||||
Reference in New Issue
Block a user