update unread count

This commit is contained in:
Salvatore Giordano
2020-12-31 16:25:11 +01:00
parent 2d36d08fc4
commit 7f2dadb60d
+6 -5
View File
@@ -813,12 +813,13 @@ class _MessageWidgetState extends State<MessageWidget> {
if (isMessageRead) { if (isMessageRead) {
child = Row( child = Row(
children: [ children: [
Text( if (StreamChannel.of(context).channel.memberCount > 2)
widget.readList.length.toString(), Text(
style: style.copyWith( widget.readList.length.toString(),
color: StreamChatTheme.of(context).colorTheme.accentBlue, style: style.copyWith(
color: StreamChatTheme.of(context).colorTheme.accentBlue,
),
), ),
),
SizedBox(width: 2), SizedBox(width: 2),
child, child,
], ],