Underline links in chat

This commit is contained in:
Tommy Chow 2023-12-17 23:16:31 -05:00
parent 663b32b945
commit d61b938cbe

View file

@ -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),