2024-07-25 08:08:46 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:solian/models/post.dart';
|
2024-07-25 17:16:32 +00:00
|
|
|
import 'package:solian/widgets/posts/post_list.dart';
|
2024-07-25 08:08:46 +00:00
|
|
|
|
|
|
|
class PostSingleDisplay extends StatelessWidget {
|
|
|
|
final Post item;
|
2024-07-25 17:16:32 +00:00
|
|
|
final Function onUpdate;
|
2024-07-25 08:08:46 +00:00
|
|
|
|
2024-07-25 17:16:32 +00:00
|
|
|
const PostSingleDisplay({
|
|
|
|
super.key,
|
|
|
|
required this.item,
|
|
|
|
required this.onUpdate,
|
|
|
|
});
|
2024-07-25 08:08:46 +00:00
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-07-26 06:21:00 +00:00
|
|
|
return SingleChildScrollView(
|
|
|
|
child: Container(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Card(
|
2024-07-25 17:16:32 +00:00
|
|
|
child: PostListEntryWidget(
|
2024-07-25 08:08:46 +00:00
|
|
|
item: item,
|
2024-07-25 17:16:32 +00:00
|
|
|
isClickable: true,
|
|
|
|
isShowEmbed: true,
|
|
|
|
isNestedClickable: true,
|
|
|
|
onUpdate: onUpdate,
|
|
|
|
),
|
2024-07-25 08:08:46 +00:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|