Skip to content

Commit

Permalink
Added Support to see the latest comment count in feeds widget (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
umareko authored Dec 22, 2023
1 parent 3b5a1d1 commit 99917fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core/widget/feed_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,),
],
),
),
Expand Down Expand Up @@ -207,6 +210,7 @@ class FeedWidget extends StatelessWidget {
},
);
}),

const SizedBox(height: 12),
if (!disableAddComment)
AddCommentWidget(
Expand Down

0 comments on commit 99917fe

Please sign in to comment.