Fix certain links not launching on Android (#108)
This commit is contained in:
parent
8f7da2f7b4
commit
6191624d44
1 changed files with 1 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue