diff --git a/lib/Main_Screens/Community_HomePage/Community.dart b/lib/Main_Screens/Community_HomePage/Community.dart index 6fa5baf..98c8160 100644 --- a/lib/Main_Screens/Community_HomePage/Community.dart +++ b/lib/Main_Screens/Community_HomePage/Community.dart @@ -428,7 +428,6 @@ class _FeedTabState extends State { ), ), combinedList.isEmpty - ? Center( child: Column( crossAxisAlignment: CrossAxisAlignment.center, @@ -1077,7 +1076,6 @@ class _FeedTabState extends State { } else { return Column( children: [ - commonGlassUI( width: double.infinity, height: 760.h, @@ -1787,6 +1785,7 @@ class NormalCardTile extends StatefulWidget { final List?> reactionsLike; final Reaction? selectedReactionLike; final Widget? likePopupWidget; + final void Function()? mainImagetap; const NormalCardTile({ Key? key, @@ -1804,6 +1803,7 @@ class NormalCardTile extends StatefulWidget { required this.reactionsLike, required this.selectedReactionLike, required this.likePopupWidget, + required this.mainImagetap, this.create_at, this.postId, this.onSaveIconTap, @@ -2087,9 +2087,7 @@ class _NormalCardTileState extends State { ), sizedBoxHeight(20.h), GestureDetector( - onTap: () { - Get.toNamed(RouteName.postdetailsScreen); - }, + onTap: widget.mainImagetap, child: Container( height: 360, width: double.infinity, @@ -2634,7 +2632,6 @@ class _PopularTabState extends State { if (snapshot.connectionState == ConnectionState.done && snapshot.hasData) { - _initializeData(); return Stack(clipBehavior: Clip.none, children: [ Container( decoration: const BoxDecoration( @@ -2702,6 +2699,13 @@ class _PopularTabState extends State { popularData.community!.communityName ?? 'text', postId: popularData.id.toString(), + mainImagetap: () { + Get.toNamed(RouteName.postdetailsScreen, + arguments: { + "PopularPostId": + popularData.id.toString() + }); + }, onSaveIconTap: () async { await saveunsavepost(popularData.id!); },