add children count for collapsed comments
This commit is contained in:
parent
f091603347
commit
7d8db2e83c
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue