From 16d66233461e08a4cee154e664325cf7a52d3fd2 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 27 Jan 2021 20:08:09 +0100 Subject: [PATCH] fix: Link color --- lib/components/message_content.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/components/message_content.dart b/lib/components/message_content.dart index dad4907c..b911278c 100644 --- a/lib/components/message_content.dart +++ b/lib/components/message_content.dart @@ -112,6 +112,11 @@ class MessageContent extends StatelessWidget { color: textColor, fontSize: bigEmotes ? fontSize * 3 : fontSize, ), + linkStyle: TextStyle( + color: textColor.withAlpha(150), + fontSize: bigEmotes ? fontSize * 3 : fontSize, + decoration: TextDecoration.underline, + ), room: event.room, emoteSize: bigEmotes ? fontSize * 3 : fontSize * 1.5, ); @@ -190,6 +195,11 @@ class MessageContent extends StatelessWidget { fontSize: bigEmotes ? fontSize * 3 : fontSize, decoration: event.redacted ? TextDecoration.lineThrough : null, ), + linkStyle: TextStyle( + color: textColor.withAlpha(150), + fontSize: bigEmotes ? fontSize * 3 : fontSize, + decoration: TextDecoration.underline, + ), onLinkTap: (url) => UrlLauncher(context, url).launchUrl(), ); }