Skip to content

Commit 60c0131

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 19337c7 commit 60c0131

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
@@ -134,7 +134,7 @@ class MessageListTheme extends ThemeExtension<MessageListTheme> {
134134
}
135135
return MessageListTheme._(
136136
dateSeparator: Color.lerp(dateSeparator, other.dateSeparator, t)!,
137-
dmRecipientHeaderBg: Color.lerp(streamMessageBgDefault, other.dmRecipientHeaderBg, t)!,
137+
dmRecipientHeaderBg: Color.lerp(dmRecipientHeaderBg, other.dmRecipientHeaderBg, t)!,
138138
labelTime: Color.lerp(labelTime, other.labelTime, t)!,
139139
senderBotIcon: Color.lerp(senderBotIcon, other.senderBotIcon, t)!,
140140
streamMessageBgDefault: Color.lerp(streamMessageBgDefault, other.streamMessageBgDefault, t)!,

0 commit comments

Comments
 (0)