From 99917fe5199276f98fa590619deba717add35d21 Mon Sep 17 00:00:00 2001 From: Muhammad Umar Manzoor Chaudhary <124767245+umareko@users.noreply.github.com> Date: Fri, 22 Dec 2023 11:40:17 +0700 Subject: [PATCH] Added Support to see the latest comment count in feeds widget (#205) --- lib/core/widget/feed_widget.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/widget/feed_widget.dart b/lib/core/widget/feed_widget.dart index 8ac0eff..89f7f40 100644 --- a/lib/core/widget/feed_widget.dart +++ b/lib/core/widget/feed_widget.dart @@ -144,6 +144,9 @@ class FeedWidget extends StatelessWidget { 'Posted On : ${(value.target as CommunityTarget).targetCommunity?.displayName ?? 'No name'} Community', style: themeData.textTheme.bodySmall, ), + Text("LatestCommentUserName -> ${snapshot.data!.latestComments?[0].user?.displayName ?? "No Latest comment user"}" , style: themeData.textTheme.bodySmall,), + Text("LatestCommentUserID -> ${snapshot.data!.latestComments?[0].userId ?? "No Latest comment user"}", style: themeData.textTheme.bodySmall,), + Text("LatestCommentSize -> ${snapshot.data!.latestComments?.length ?? "0"}", style: themeData.textTheme.bodySmall,), ], ), ), @@ -207,6 +210,7 @@ class FeedWidget extends StatelessWidget { }, ); }), + const SizedBox(height: 12), if (!disableAddComment) AddCommentWidget(