diff --git a/devtools_options.yaml b/devtools_options.yaml new file mode 100644 index 0000000..7e7e7f6 --- /dev/null +++ b/devtools_options.yaml @@ -0,0 +1 @@ +extensions: diff --git a/lib/core/widget/feed_widget.dart b/lib/core/widget/feed_widget.dart index eac555a..50b3254 100644 --- a/lib/core/widget/feed_widget.dart +++ b/lib/core/widget/feed_widget.dart @@ -34,6 +34,7 @@ class FeedWidget extends StatelessWidget { @override Widget build(BuildContext context) { final themeData = Theme.of(context); + return StreamBuilder( stream: amityPost.listen.stream, @@ -147,10 +148,20 @@ class FeedWidget extends StatelessWidget { style: themeData.textTheme.bodySmall, ), if (value.target is CommunityTarget) + Text( 'Posted On : ${(value.target as CommunityTarget).targetCommunity?.displayName ?? 'No name'} Community', style: themeData.textTheme.bodySmall, ), + + (value.target as CommunityTarget).postedCommunityMember!=null? + + Text( + 'Poster Roles On : ${(value.target as CommunityTarget).postedCommunityMember?.roles ?? 'No Roles'} in Community', + style: themeData.textTheme.bodySmall, + ): const SizedBox() , + + Text( "LatestCommentUserName -> ${snapshot.data!.latestComments?[0].user?.displayName ?? "No Latest comment user"}", style: themeData.textTheme.bodySmall, diff --git a/pubspec.yaml b/pubspec.yaml index af061dc..b3fde1b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_social_sample_app description: Demonstrates how to use the flutter_application_1 plugin. -version: 1.1.43+58 +version: 1.1.44+59 environment: