From 7f2dadb60d5a1f83aa954787a9fec09f1b3819d1 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 31 Dec 2020 16:25:11 +0100 Subject: [PATCH] update unread count --- lib/src/message_widget.dart | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/src/message_widget.dart b/lib/src/message_widget.dart index 61c6bf5c..5c175512 100644 --- a/lib/src/message_widget.dart +++ b/lib/src/message_widget.dart @@ -813,12 +813,13 @@ class _MessageWidgetState extends State { if (isMessageRead) { child = Row( children: [ - Text( - widget.readList.length.toString(), - style: style.copyWith( - color: StreamChatTheme.of(context).colorTheme.accentBlue, + if (StreamChannel.of(context).channel.memberCount > 2) + Text( + widget.readList.length.toString(), + style: style.copyWith( + color: StreamChatTheme.of(context).colorTheme.accentBlue, + ), ), - ), SizedBox(width: 2), child, ],