Skip to content

Commit f85c293

Browse files
authored
fix(ui): use correct theme color for unread indicator button (#2382)
1 parent 70c0f7e commit f85c293

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/stream_chat_flutter/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
🐞 Fixed
99

1010
- Fixed `.replaceMentions` not escaping special characters in the username.
11+
- Fixed unread indicator button using hardcoded white color instead of theme color
12+
`colorTheme.barsBg`. [[#2366]](https://github.com/GetStream/stream-chat-flutter/issues/2366)
1113
- Fixed `GradientAvatars` for users with same-length IDs would have identical
1214
colors. [[#2369]](https://github.com/GetStream/stream-chat-flutter/issues/2369)
1315

packages/stream_chat_flutter/lib/src/message_list_view/unread_indicator_button.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ class UnreadIndicatorButton extends StatelessWidget {
9292
context.translations.unreadCountIndicatorLabel(
9393
unreadCount: unreadCount,
9494
),
95-
style: textTheme.body.copyWith(color: Colors.white),
95+
style: textTheme.body.copyWith(color: colorTheme.barsBg),
9696
),
9797
const SizedBox(width: 12),
9898
IconButton(
9999
iconSize: 24,
100100
icon: const SvgIcon(StreamSvgIcons.close),
101101
padding: const EdgeInsets.all(4),
102102
style: IconButton.styleFrom(
103-
foregroundColor: Colors.white,
103+
foregroundColor: colorTheme.barsBg,
104104
minimumSize: const Size.square(24),
105105
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
106106
),

0 commit comments

Comments
 (0)