Hopefully fix font size & link colour

This commit is contained in:
Sorunome
2020-05-15 05:47:32 +00:00
committed by Christian Pauly
parent cacc0c4854
commit 6184c60d80
3 changed files with 23 additions and 8 deletions

View File

@ -51,7 +51,10 @@ class MessageContent extends StatelessWidget {
}
return HtmlMessage(
html: html,
textColor: textColor,
defaultTextStyle: TextStyle(
color: textColor,
fontSize: DefaultTextStyle.of(context).style.fontSize,
),
room: event.room,
);
}
@ -79,6 +82,7 @@ class MessageContent extends StatelessWidget {
text: event.getLocalizedBody(L10n.of(context), hideReply: true),
textStyle: TextStyle(
color: textColor,
fontSize: DefaultTextStyle.of(context).style.fontSize,
decoration: event.redacted ? TextDecoration.lineThrough : null,
),
);