id taken from community

This commit is contained in:
Dakshesh42
2024-08-08 19:42:32 +05:30
parent a94680b572
commit f6cdfcd051

View File

@@ -428,7 +428,6 @@ class _FeedTabState extends State<FeedTab> {
),
),
combinedList.isEmpty
? Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
@@ -1077,7 +1076,6 @@ class _FeedTabState extends State<FeedTab> {
} else {
return Column(
children: [
commonGlassUI(
width: double.infinity,
height: 760.h,
@@ -1787,6 +1785,7 @@ class NormalCardTile extends StatefulWidget {
final List<Reaction<String>?> reactionsLike;
final Reaction<String>? 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<NormalCardTile> {
),
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<PopularTab> {
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<PopularTab> {
popularData.community!.communityName ??
'text',
postId: popularData.id.toString(),
mainImagetap: () {
Get.toNamed(RouteName.postdetailsScreen,
arguments: {
"PopularPostId":
popularData.id.toString()
});
},
onSaveIconTap: () async {
await saveunsavepost(popularData.id!);
},