Add example for flame_test (#958)

* Add example for flame_test

* Fix analyze warnings

* Fix tests
This commit is contained in:
Lukas Klingsbo
2021-09-16 20:57:04 +02:00
committed by GitHub
parent 2a7af3730b
commit 7b51539bae
8 changed files with 251 additions and 3 deletions

View File

@ -0,0 +1,15 @@
import 'package:flame/extensions.dart';
void main() {}
class MyVectorChanger {
Vector2 addOne(Vector2 vector) {
return vector + Vector2.all(1.0);
}
}
class MyDoubleChanger {
double addOne(double number) {
return number + 1.0;
}
}