fix markdown text style

This commit is contained in:
Salvatore Giordano
2020-02-28 13:38:47 +01:00
parent 2d7ea2d3cd
commit 6e067b0d79
+15 -3
View File
@@ -329,9 +329,21 @@ class _MessageWidgetState extends State<MessageWidget>
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,
),
),