diff --git a/lib/animation.dart b/lib/animation.dart
index f1ca4c114..0f4633567 100644
--- a/lib/animation.dart
+++ b/lib/animation.dart
@@ -61,8 +61,8 @@ class Animation {
int amount, {
double textureX = 0.0,
double textureY = 0.0,
- double textureWidth = null,
- double textureHeight = null,
+ double textureWidth,
+ double textureHeight,
double stepTime = 0.1,
}) {
this.frames = new List(amount);
@@ -85,8 +85,8 @@ class Animation {
List stepTimes, {
double textureX = 0.0,
double textureY = 0.0,
- double textureWidth = null,
- double textureHeight = null,
+ double textureWidth,
+ double textureHeight,
}) {
this.frames = new List(amount);
for (var i = 0; i < amount; i++) {
@@ -108,7 +108,7 @@ class Animation {
bool get isLastFrame => currentIndex == frames.length - 1;
/// Sets a different step time to each frame. The sizes of the arrays must match.
- void set variableStepTimes(List stepTimes) {
+ set variableStepTimes(List stepTimes) {
assert(stepTimes.length == frames.length);
for (int i = 0; i < frames.length; i++) {
frames[i].stepTime = stepTimes[i];
diff --git a/lib/components/text_box_component.dart b/lib/components/text_box_component.dart
index ac4359ece..be99a8312 100644
--- a/lib/components/text_box_component.dart
+++ b/lib/components/text_box_component.dart
@@ -1,7 +1,7 @@
import 'dart:ui';
import 'dart:math' as math;
-import 'package:flutter/src/painting/text_painter.dart';
+import 'package:flutter/widgets.dart';
import 'component.dart';
import 'resizable.dart';
diff --git a/lib/components/tiled_component.dart b/lib/components/tiled_component.dart
index 89d1dfa1d..ff4e0ca51 100644
--- a/lib/components/tiled_component.dart
+++ b/lib/components/tiled_component.dart
@@ -1,3 +1,4 @@
+import 'dart:async';
import 'dart:ui';
import 'package:flame/components/component.dart';
@@ -77,7 +78,5 @@ class TiledComponent extends Component {
}
@override
- void update(double t) {
- // TODO: implement update
- }
+ void update(double t) {}
}
diff --git a/lib/util.dart b/lib/util.dart
index 7c85c5da7..0770363e7 100644
--- a/lib/util.dart
+++ b/lib/util.dart
@@ -57,7 +57,8 @@ class Util {
/// Use this in order to get it to work in case your app also contains other widgets.
void addGestureRecognizer(GestureRecognizer recognizer) {
if (GestureBinding.instance == null) {
- throw new Exception("GestureBinding is not initialized yet, this probably happened because addGestureRecognizer was called before the runApp method");
+ throw new Exception(
+ "GestureBinding is not initialized yet, this probably happened because addGestureRecognizer was called before the runApp method");
}
GestureBinding.instance.pointerRouter.addGlobalRoute((PointerEvent e) {
diff --git a/test/components/tiled_test.dart b/test/components/tiled_test.dart
index dbc306ba1..7ef1be64c 100644
--- a/test/components/tiled_test.dart
+++ b/test/components/tiled_test.dart
@@ -1,3 +1,4 @@
+import 'dart:async';
import 'dart:io';
import 'dart:typed_data';