fix: 点赞计数

This commit is contained in:
guozhigq
2024-09-09 00:05:22 +08:00
parent 1d87e66433
commit 012b415233

View File

@ -203,9 +203,9 @@ class LikeItem extends StatelessWidget {
Text.rich(TextSpan(children: [ Text.rich(TextSpan(children: [
TextSpan(text: nickNameList.join('')), TextSpan(text: nickNameList.join('')),
const TextSpan(text: ' '), const TextSpan(text: ' '),
if (item.users!.length > 1) if (item.counts! > 1)
TextSpan( TextSpan(
text: '等总计${item.users!.length}', text: '等总计${item.counts}',
style: TextStyle(color: outline), style: TextStyle(color: outline),
), ),
TextSpan( TextSpan(