2024-07-09 14:39:44 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:solian/models/post.dart';
|
2024-07-09 15:06:55 +00:00
|
|
|
import 'package:solian/widgets/posts/post_item.dart';
|
2024-07-09 14:39:44 +00:00
|
|
|
|
|
|
|
class PostOwnedListEntry extends StatelessWidget {
|
|
|
|
final Post item;
|
|
|
|
final Function onTap;
|
|
|
|
|
|
|
|
const PostOwnedListEntry({
|
|
|
|
super.key,
|
|
|
|
required this.item,
|
|
|
|
required this.onTap,
|
|
|
|
});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Card(
|
|
|
|
child: InkWell(
|
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(8)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
2024-07-09 15:06:55 +00:00
|
|
|
PostItem(
|
2024-07-23 10:09:41 +00:00
|
|
|
key: Key('p${item.id}'),
|
2024-07-09 15:06:55 +00:00
|
|
|
item: item,
|
|
|
|
isShowEmbed: false,
|
|
|
|
isClickable: false,
|
|
|
|
isShowReply: false,
|
|
|
|
isReactable: false,
|
|
|
|
).paddingSymmetric(vertical: 8),
|
2024-07-09 14:39:44 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
onTap: () => onTap(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|