Solian/lib/widgets/posts/post_single_display.dart

33 lines
742 B
Dart
Raw Normal View History

2024-07-25 08:08:46 +00:00
import 'package:flutter/material.dart';
import 'package:solian/models/post.dart';
import 'package:solian/widgets/posts/post_list.dart';
2024-07-25 08:08:46 +00:00
class PostSingleDisplay extends StatelessWidget {
final Post item;
final Function onUpdate;
2024-07-25 08:08:46 +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(
child: PostListEntryWidget(
2024-07-25 08:08:46 +00:00
item: item,
isClickable: true,
isShowEmbed: true,
isNestedClickable: true,
onUpdate: onUpdate,
),
2024-07-25 08:08:46 +00:00
),
),
);
}
}