Fix deprecations
This commit is contained in:
parent
e99521c3f0
commit
02ebf0ff43
9 changed files with 21 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue