Changing docs to reflect the refactoring

This commit is contained in:
Erick Zanardo
2019-11-07 18:42:22 -03:00
committed by Erick (CptBlackPixel)
parent a2336b926d
commit dea71c98f3
3 changed files with 60 additions and 43 deletions

View File

@ -24,10 +24,12 @@ class MyGame extends Game with TapDetector, DoubleTapDetector, PanDetector {
void onTap() {
_paint = _paint == _whitePaint ? _bluePaint : _whitePaint;
}
@override
void onDoubleTap() {
_paint = _greenPaint;
}
@override
void onPanUpdate(DragUpdateDetails details) {
_rect = _rect.translate(details.delta.dx, details.delta.dy);