Fix deprecations

This commit is contained in:
Christian Pauly 2020-05-06 18:43:30 +02:00
commit 02ebf0ff43
9 changed files with 21 additions and 13 deletions

View file

@ -58,7 +58,7 @@ class Message extends StatelessWidget {
if (event.messageType == MessageTypes.Image) {
color = Theme.of(context).scaffoldBackgroundColor.withOpacity(0.66);
textColor = Theme.of(context).textTheme.body1.color;
textColor = Theme.of(context).textTheme.bodyText2.color;
} else if (ownMessage) {
color = event.status == -1
? Colors.redAccent

View file

@ -24,7 +24,7 @@ class StateMessage extends StatelessWidget {
event.getLocalizedBody(I18n.of(context)),
textAlign: TextAlign.center,
style: TextStyle(
color: Theme.of(context).textTheme.body1.color,
color: Theme.of(context).textTheme.bodyText2.color,
decoration: event.redacted ? TextDecoration.lineThrough : null,
),
),