@@ -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
188188class 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