Skip to content

Commit 5b98b23

Browse files
committed
chore: update CHANGELOG.md
1 parent 811b200 commit 5b98b23

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

packages/stream_chat_flutter/CHANGELOG.md

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

55
- Fixed `.replaceMentions` not escaping special characters in the username.
6+
- Fixed `GradientAvatars` for users with same-length IDs would have identical
7+
colors. [[#2369]](https://github.com/GetStream/stream-chat-flutter/issues/2369)
68

79
## 9.16.0
810

packages/stream_chat_flutter/test/src/avatars/gradient_avatar_test.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void main() {
117117

118118
// Regression test for GitHub issue #2369
119119
// https://github.com/GetStream/stream-chat-flutter/issues/2369
120-
//
120+
//
121121
// Issue: All Users have the same Gradient Avatar color
122122
// Problem: Users with same-length IDs were getting identical gradient colors
123123
// Solution: Use userId.hashCode instead of length-based randomization
@@ -133,8 +133,8 @@ void main() {
133133
constraints: const BoxConstraints.tightFor(width: 450, height: 180),
134134
child: const AvatarComparisonRow(
135135
users: [
136-
('12133', 'User One'), // Example IDs from the issue
137-
('12134', 'User Two'), // These were showing same colors
136+
('12133', 'User One'), // Example IDs from the issue
137+
('12134', 'User Two'), // These were showing same colors
138138
('12135', 'User Three'), // before the hashCode fix
139139
],
140140
),
@@ -179,15 +179,15 @@ void main() {
179179
}
180180

181181
/// A widget that displays a row of gradient avatars for comparison testing.
182-
///
183-
/// This widget is specifically designed for testing gradient avatar color
182+
///
183+
/// This widget is specifically designed for testing gradient avatar color
184184
/// variations, particularly for verifying fixes to GitHub issue #2369 where
185185
/// users with same-length IDs were getting identical colors.
186-
///
186+
///
187187
/// See: https://github.com/GetStream/stream-chat-flutter/issues/2369
188188
class AvatarComparisonRow extends StatelessWidget {
189189
/// Creates an [AvatarComparisonRow] with the given list of users.
190-
///
190+
///
191191
/// The [users] parameter should contain tuples of (userId, userName) pairs
192192
/// to be displayed as gradient avatars for visual comparison.
193193
const AvatarComparisonRow({

0 commit comments

Comments
 (0)