docs: included asset TODO comment

pull/72/head
alestiago 4 years ago
parent 239257865d
commit c6f9e87b63

@ -17,7 +17,10 @@ class Flipper extends BodyComponent with KeyboardHandler, InitialPosition {
Flipper._({ Flipper._({
required this.side, required this.side,
required List<LogicalKeyboardKey> keys, required List<LogicalKeyboardKey> keys,
}) : _keys = keys; }) : _keys = keys {
// TODO(alestiago): Remove paint with asset and size correctly.
paint = Paint()..color = Colors.transparent;
}
Flipper._left() Flipper._left()
: this._( : this._(
@ -167,7 +170,6 @@ class Flipper extends BodyComponent with KeyboardHandler, InitialPosition {
@override @override
Future<void> onLoad() async { Future<void> onLoad() async {
await super.onLoad(); await super.onLoad();
paint = Paint()..color = Colors.transparent;
await Future.wait([ await Future.wait([
_loadSprite(), _loadSprite(),
_anchorToJoint(), _anchorToJoint(),

Loading…
Cancel
Save