add children count for collapsed comments

This commit is contained in:
krawieck 2020-09-19 15:06:50 +02:00
parent f091603347
commit 7d8db2e83c
1 changed files with 5 additions and 0 deletions

View File

@ -329,6 +329,11 @@ class Comment extends HookWidget {
if (comment.bannedFromCommunity)
_CommentTag('BANNED FROM COMMUNITY', Colors.red),
Spacer(),
if (collapsed.value && commentTree.children.length > 0) ...[
_CommentTag('+${commentTree.children.length}',
Theme.of(context).accentColor),
SizedBox(width: 7),
],
InkWell(
onTap: () => _showCommentInfo(context),
child: Row(