fix markdown text style
This commit is contained in:
@@ -329,9 +329,21 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
onTapLink: (link) {
|
onTapLink: (link) {
|
||||||
_launchURL(link);
|
_launchURL(link);
|
||||||
},
|
},
|
||||||
styleSheet:
|
styleSheet: MarkdownStyleSheet.fromTheme(
|
||||||
MarkdownStyleSheet.fromTheme(Theme.of(context))
|
Theme.of(context).copyWith(
|
||||||
.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,
|
p: messageTheme.messageText,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user