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 VideoAttachment extends AttachmentWidget {
this.onShowMessage,
this.onReturnAction,
this.onAttachmentTap,
this.attachmentActionsModalBuilder,
}) : super(
key: key,
message: message,
@@ -37,6 +38,8 @@ class VideoAttachment extends AttachmentWidget {
/// Callback when attachment is tapped
final VoidCallback? onAttachmentTap;
final AttachmentActionsBuilder? attachmentActionsModalBuilder;
@override
Widget build(BuildContext context) => source.when(
local: () {
@@ -91,6 +94,8 @@ class VideoAttachment extends AttachmentWidget {
userName: message.user?.name,
message: message,
onShowMessage: onShowMessage,
attachmentActionsModalBuilder:
attachmentActionsModalBuilder,
),
),
),