Solian/lib/widgets/posts/post_single_display.dart
2024-10-13 23:12:23 +08:00

34 lines
779 B
Dart

import 'package:flutter/material.dart';
import 'package:solian/models/post.dart';
import 'package:solian/widgets/posts/post_list.dart';
class PostSingleDisplay extends StatelessWidget {
final Post item;
final Function onUpdate;
const PostSingleDisplay({
super.key,
required this.item,
required this.onUpdate,
});
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
child: Container(
alignment: Alignment.center,
child: Card(
child: PostListEntryWidget(
item: item,
isClickable: true,
isShowEmbed: true,
isNestedClickable: true,
showFeaturedReply: true,
onUpdate: onUpdate,
),
),
),
);
}
}