Skip to content

Commit 25cf3e4

Browse files
msglist: Fix dmRecipientHeaderBg lerp bug in MessageListTheme
Fixed a bug in `MessageListTheme.lerp()` where `dmRecipientHeaderBg` was using `streamMessageBgDefault` instead of `dmRecipientHeaderBg` for interpolation. discussion: #1213 (comment)
1 parent 752648f commit 25cf3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
135135
}
136136
return MessageListTheme._(
137137
dateSeparator: Color.lerp(dateSeparator, other.dateSeparator, t)!,
138-
dmRecipientHeaderBg: Color.lerp(streamMessageBgDefault, other.dmRecipientHeaderBg, t)!,
138+
dmRecipientHeaderBg: Color.lerp(dmRecipientHeaderBg, other.dmRecipientHeaderBg, t)!,
139139
labelTime: Color.lerp(labelTime, other.labelTime, t)!,
140140
senderBotIcon: Color.lerp(senderBotIcon, other.senderBotIcon, t)!,
141141
streamMessageBgDefault: Color.lerp(streamMessageBgDefault, other.streamMessageBgDefault, t)!,

0 commit comments

Comments
 (0)