🐛 Bug fixes

This commit is contained in:
2024-08-04 21:12:35 +08:00
parent d8e79fb4f9
commit 4f6c5aa053
6 changed files with 40 additions and 25 deletions

View File

@ -23,6 +23,7 @@ class PostItem extends StatefulWidget {
final bool isReactable;
final bool isShowReply;
final bool isShowEmbed;
final bool isOverrideEmbedClickable;
final bool isFullDate;
final bool isFullContent;
final bool isContentSelectable;
@ -37,6 +38,7 @@ class PostItem extends StatefulWidget {
this.isReactable = true,
this.isShowReply = true,
this.isShowEmbed = true,
this.isOverrideEmbedClickable = false,
this.isFullDate = false,
this.isFullContent = false,
this.isContentSelectable = false,
@ -176,7 +178,7 @@ class _PostItemState extends State<PostItem> {
Widget _buildReply(BuildContext context) {
return OpenContainer(
tappable: widget.isClickable,
tappable: widget.isClickable || widget.isOverrideEmbedClickable,
closedBuilder: (_, openContainer) => Column(
children: [
Row(
@ -223,7 +225,7 @@ class _PostItemState extends State<PostItem> {
Widget _buildRepost(BuildContext context) {
return OpenContainer(
tappable: widget.isClickable,
tappable: widget.isClickable || widget.isOverrideEmbedClickable,
closedBuilder: (_, openContainer) => Column(
children: [
Row(