added attachment actions modal builder

This commit is contained in:
Deven Joshi
2021-11-15 18:00:45 +05:30
parent 81508ac8ba
commit 5740e53ada
7 changed files with 71 additions and 43 deletions
@@ -18,6 +18,7 @@ class GiphyAttachment extends AttachmentWidget {
this.onShowMessage,
this.onReturnAction,
this.onAttachmentTap,
this.attachmentActionsModalBuilder,
}) : super(
key: key,
message: message,
@@ -34,6 +35,8 @@ class GiphyAttachment extends AttachmentWidget {
/// Callback when attachment is tapped
final VoidCallback? onAttachmentTap;
final AttachmentActionsBuilder? attachmentActionsModalBuilder;
@override
Widget build(BuildContext context) {
final imageUrl =
@@ -250,6 +253,7 @@ class GiphyAttachment extends AttachmentWidget {
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
attachmentActionsModalBuilder: attachmentActionsModalBuilder,
),
);
},