fix: open source link not opening on mobile (#440)

pull/442/head
Jorge Coca 2 years ago committed by GitHub
parent 43ceb0db32
commit 03c4728372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -290,7 +290,7 @@ class OpenSourceTextComponent extends TextComponent with HasGameRef, Tappable {
);
@override
bool onTapDown(TapDownInfo info) {
bool onTapUp(TapUpInfo info) {
openLink(ShareRepository.openSourceCode);
return true;
}

@ -176,7 +176,7 @@ void main() {
final openSourceLink =
component.descendants().whereType<OpenSourceTextComponent>().first;
openSourceLink.onTapDown(_MockTapDownInfo());
openSourceLink.onTapUp(_MockTapUpInfo());
await game.ready();

Loading…
Cancel
Save