postFooterBuilder property

PostFooterBuilder? postFooterBuilder
final

Builds the post footer

PensilPostFeedListView(
      sectionId: id,
      postFooterBuilder: (
        BuildContext context,
        Post post,
        void Function(PostAction) onActionTrigger,
      ) {
        return Row(
          children: [
            IconButton(
              onPressed: () {
                onActionTrigger(PostAction.onLike(post));
              },
              icon: const Icon(Icons.thumb_up),
            ),
            Text(post.likes.toString()),
            const SizedBox(width: 16),
            IconButton(
              onPressed: () {
                onActionTrigger(PostAction.onUserTap(post));
              },
              icon: const Icon(Icons.comment),
            ),
            Text(post.commentCount.toString()),
          ],
        );
      },
    );
  },
)

Implementation

final PostFooterBuilder? postFooterBuilder;