Underline links in chat
This commit is contained in:
parent
663b32b945
commit
d61b938cbe
1 changed files with 5 additions and 1 deletions
|
|
@ -632,7 +632,11 @@ class IRCMessage {
|
|||
} else if (RegExp(r'https?:\/\/').hasMatch(text)) {
|
||||
return TextSpan(
|
||||
text: text,
|
||||
style: style?.copyWith(color: Colors.blue),
|
||||
style: style?.copyWith(
|
||||
color: Colors.blue,
|
||||
decoration: TextDecoration.underline,
|
||||
decorationColor: Colors.blue,
|
||||
),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () => launchUrl(
|
||||
Uri.parse(text),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue