[Message Widget] Modify read indicator as per new design v2
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -122,7 +122,11 @@ class ChannelPreview extends StatelessWidget {
|
||||
padding: const EdgeInsets.only(right: 4.0),
|
||||
child: SendingIndicator(
|
||||
message: channel.state.lastMessage,
|
||||
allRead: channel.state.read
|
||||
size: StreamChatTheme.of(context)
|
||||
.channelPreviewTheme
|
||||
.lastMessageAt
|
||||
.fontSize,
|
||||
isMessageRead: channel.state.read
|
||||
.where((element) => element.lastRead
|
||||
.isAfter(channel
|
||||
.state.lastMessage.createdAt))
|
||||
|
||||
Reference in New Issue
Block a user