Use prepareCanvas

This commit is contained in:
Lukas Klingsbo
2020-05-21 23:12:18 +02:00
parent c68c77b563
commit b7fc754ce1
2 changed files with 5 additions and 6 deletions

View File

@ -17,7 +17,7 @@ void main() async {
runApp(MyGame().widget);
}
class MyGame extends BaseGame with TapDetector {
class MyGame extends BaseGame {
Square greenSquare;
Square redSquare;
Square orangeSquare;
@ -35,7 +35,7 @@ class MyGame extends BaseGame with TapDetector {
}
@override
void onTapUp(details) {
void onTapUp(int pointerId, TapUpDetails details) {
final dx = details.localPosition.dx;
final dy = details.localPosition.dy;