Skip to content

Commit 852c509

Browse files
msglist: Fix DM header color lerp bug.
Fixed a bug in MessageListTheme.lerp() where dmRecipientHeaderBg was using streamMessageBgDefault instead of dmRecipientHeaderBg for interpolation.
1 parent c160864 commit 852c509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/message_list.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
160160
dateSeparator: Color.lerp(dateSeparator, other.dateSeparator, t)!,
161161
dateSeparatorText: Color.lerp(dateSeparatorText, other.dateSeparatorText, t)!,
162162
dmMessageBgDefault: Color.lerp(dmMessageBgDefault, other.dmMessageBgDefault, t)!,
163-
dmRecipientHeaderBg: Color.lerp(streamMessageBgDefault, other.dmRecipientHeaderBg, t)!,
163+
dmRecipientHeaderBg: Color.lerp(dmRecipientHeaderBg, other.dmRecipientHeaderBg, t)!,
164164
messageTimestamp: Color.lerp(messageTimestamp, other.messageTimestamp, t)!,
165165
recipientHeaderText: Color.lerp(recipientHeaderText, other.recipientHeaderText, t)!,
166166
senderBotIcon: Color.lerp(senderBotIcon, other.senderBotIcon, t)!,

0 commit comments

Comments
 (0)