mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
Changing docs to reflect the refactoring
This commit is contained in:
committed by
Erick (CptBlackPixel)
parent
a2336b926d
commit
dea71c98f3
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user