chore: Folllow up message bubble color

This commit is contained in:
krille-chan 2023-10-28 11:51:32 +02:00
commit 69f7429b71
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -84,7 +84,7 @@ class Message extends StatelessWidget {
nextEvent!.senderId == event.senderId &&
!displayTime;
final textColor = ownMessage
? Theme.of(context).colorScheme.onPrimary
? Theme.of(context).colorScheme.onPrimaryContainer
: Theme.of(context).colorScheme.onBackground;
final rowMainAxisAlignment =
ownMessage ? MainAxisAlignment.end : MainAxisAlignment.start;
@ -114,7 +114,7 @@ class Message extends StatelessWidget {
if (ownMessage) {
color = displayEvent.status.isError
? Colors.redAccent
: Theme.of(context).colorScheme.primary;
: Theme.of(context).colorScheme.primaryContainer;
}
final row = Row(