diff --git a/packages/stream_chat_flutter/CHANGELOG.md b/packages/stream_chat_flutter/CHANGELOG.md index 49b993af6..703671887 100644 --- a/packages/stream_chat_flutter/CHANGELOG.md +++ b/packages/stream_chat_flutter/CHANGELOG.md @@ -8,6 +8,8 @@ 🐞 Fixed - Fixed `.replaceMentions` not escaping special characters in the username. +- Fixed unread indicator button using hardcoded white color instead of theme color + `colorTheme.barsBg`. [[#2366]](https://github.com/GetStream/stream-chat-flutter/issues/2366) - Fixed `GradientAvatars` for users with same-length IDs would have identical colors. [[#2369]](https://github.com/GetStream/stream-chat-flutter/issues/2369) diff --git a/packages/stream_chat_flutter/lib/src/message_list_view/unread_indicator_button.dart b/packages/stream_chat_flutter/lib/src/message_list_view/unread_indicator_button.dart index e524fce00..6c66c118c 100644 --- a/packages/stream_chat_flutter/lib/src/message_list_view/unread_indicator_button.dart +++ b/packages/stream_chat_flutter/lib/src/message_list_view/unread_indicator_button.dart @@ -92,7 +92,7 @@ class UnreadIndicatorButton extends StatelessWidget { context.translations.unreadCountIndicatorLabel( unreadCount: unreadCount, ), - style: textTheme.body.copyWith(color: Colors.white), + style: textTheme.body.copyWith(color: colorTheme.barsBg), ), const SizedBox(width: 12), IconButton( @@ -100,7 +100,7 @@ class UnreadIndicatorButton extends StatelessWidget { icon: const SvgIcon(StreamSvgIcons.close), padding: const EdgeInsets.all(4), style: IconButton.styleFrom( - foregroundColor: Colors.white, + foregroundColor: colorTheme.barsBg, minimumSize: const Size.square(24), tapTargetSize: MaterialTapTargetSize.shrinkWrap, ),