This commit is contained in:
Erick Zanardo
2020-05-20 19:57:48 -03:00
parent 624a4de294
commit b46ebb1378
3 changed files with 76 additions and 107 deletions

View File

@ -9,7 +9,8 @@ void main() {
}
/// Includes an example including basic detectors
class MyGame extends Game with TapDetector, DoubleTapDetector, PanDetector, LongPressDetector {
class MyGame extends Game
with TapDetector, DoubleTapDetector, PanDetector, LongPressDetector {
final _whitePaint = BasicPalette.white.paint;
final _bluePaint = Paint()..color = const Color(0xFF0000FF);
final _greenPaint = Paint()..color = const Color(0xFF00FF00);