Fix certain links not launching on Android (#108)

This commit is contained in:
Tommy Chow 2022-04-08 22:57:21 -04:00 • committed by GitHub
parent 8f7da2f7b4
commit 6191624d44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -581,10 +581,7 @@ class IRCMessage {
return TextSpan(
text: text,
style: style?.copyWith(color: Colors.blue),
recognizer: TapGestureRecognizer()
..onTap = () async {
if (await canLaunch(text)) launch(text);
},
recognizer: TapGestureRecognizer()..onTap = () => launch(text),
);
} else {
return TextSpan(text: text, style: style);