diff --git a/lib/pages/chat/chat_app_bar_title.dart b/lib/pages/chat/chat_app_bar_title.dart index f23b5bc54..a326340b5 100644 --- a/lib/pages/chat/chat_app_bar_title.dart +++ b/lib/pages/chat/chat_app_bar_title.dart @@ -99,9 +99,7 @@ class ChatAppBarTitle extends StatelessWidget { status.icon, size: 12, color: status.error != null - ? Theme.of(context) - .colorScheme - .onErrorContainer + ? Theme.of(context).colorScheme.error : null, ), const SizedBox(width: 4), @@ -111,9 +109,7 @@ class ChatAppBarTitle extends StatelessWidget { style: TextStyle( fontSize: 12, color: status.error != null - ? Theme.of(context) - .colorScheme - .onErrorContainer + ? Theme.of(context).colorScheme.error : null, ), ), diff --git a/lib/pages/chat_list/chat_list_header.dart b/lib/pages/chat_list/chat_list_header.dart index 55a2eea8c..f5f115c26 100644 --- a/lib/pages/chat_list/chat_list_header.dart +++ b/lib/pages/chat_list/chat_list_header.dart @@ -59,7 +59,9 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget { ? L10n.of(context).searchChatsRooms : status.calcLocalizedString(context), hintStyle: TextStyle( - color: theme.colorScheme.onPrimaryContainer, + color: status.error != null + ? theme.colorScheme.error + : theme.colorScheme.onPrimaryContainer, fontWeight: FontWeight.normal, ), prefixIcon: hide @@ -79,6 +81,9 @@ class ChatListHeader extends StatelessWidget implements PreferredSizeWidget { ) : Icon( status.icon, + color: status.error != null + ? theme.colorScheme.error + : theme.colorScheme.onPrimaryContainer, size: 18, ), suffixIcon: controller.isSearchMode && globalSearch