added attachment actions modal builder
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user