activityCommentSectionBuilder static method
A builder for a comment section that is used for activities.
Implementation
static CommentSectionWidgetBuilder activityCommentSectionBuilder() =>
(context, commentSectionId, comments) => Column(
mainAxisSize: MainAxisSize.min,
children: [
ListTile(
title: Consumer(
builder: (context, ref, _) {
// Display the number of comments
return Text(
t.comment.numberOfComments(
count: comments.asData?.value.length ?? 0,
),
);
},
),
),
if (comments.asData?.value != null)
defaultCommentList(
comments.asData!.value,
commentSectionId,
),
CommentForm(commentSectionId),
],
);