|
|
|
@ -76,10 +76,12 @@ extension MatrixFileExtension on MatrixFile {
|
|
|
|
// https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus#ipad
|
|
|
|
// https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus/share_plus#ipad
|
|
|
|
final box = context.findRenderObject() as RenderBox?;
|
|
|
|
final box = context.findRenderObject() as RenderBox?;
|
|
|
|
|
|
|
|
|
|
|
|
await Share.shareXFiles(
|
|
|
|
await SharePlus.instance.share(
|
|
|
|
[XFile.fromData(bytes, name: name, mimeType: mimeType)],
|
|
|
|
ShareParams(
|
|
|
|
sharePositionOrigin:
|
|
|
|
files: [XFile.fromData(bytes, name: name, mimeType: mimeType)],
|
|
|
|
box == null ? null : box.localToGlobal(Offset.zero) & box.size,
|
|
|
|
sharePositionOrigin:
|
|
|
|
|
|
|
|
box == null ? null : box.localToGlobal(Offset.zero) & box.size,
|
|
|
|
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|