diff --git a/lib/src/message_widget.dart b/lib/src/message_widget.dart index a715c2b6..e6ecf5e7 100644 --- a/lib/src/message_widget.dart +++ b/lib/src/message_widget.dart @@ -329,9 +329,21 @@ class _MessageWidgetState extends State onTapLink: (link) { _launchURL(link); }, - styleSheet: - MarkdownStyleSheet.fromTheme(Theme.of(context)) - .copyWith( + styleSheet: MarkdownStyleSheet.fromTheme( + Theme.of(context).copyWith( + textTheme: Theme.of(context).textTheme.apply( + bodyColor: messageTheme.messageText.color, + decoration: + messageTheme.messageText.decoration, + decorationColor: messageTheme + .messageText.decorationColor, + decorationStyle: messageTheme + .messageText.decorationStyle, + fontFamily: + messageTheme.messageText.fontFamily, + ), + ), + ).copyWith( p: messageTheme.messageText, ), ),