From 4ff3721f136e5f10af802a711427530284880abd Mon Sep 17 00:00:00 2001 From: Luan Nico Date: Mon, 2 Jul 2018 01:39:47 -0300 Subject: [PATCH] fixes in API --- lib/components/animation_component.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components/animation_component.dart b/lib/components/animation_component.dart index d8197a124..207c4a5e6 100644 --- a/lib/components/animation_component.dart +++ b/lib/components/animation_component.dart @@ -6,13 +6,13 @@ import 'package:flame/animation.dart'; class AnimationComponent extends PositionComponent { Animation animation; - AnimationComponent(); - AnimationComponent(double width, double height, this.animation) { this.width = width; this.height = height; } + AnimationComponent.empty(); + AnimationComponent.sequenced( width, height,