build: (deps): bump share_plus from 10.1.4 to 11.0.0

Bumps [share_plus](https://github.com/fluttercommunity/plus_plugins/tree/main/packages/share_plus) from 10.1.4 to 11.0.0.
- [Release notes](https://github.com/fluttercommunity/plus_plugins/releases)
- [Commits](https://github.com/fluttercommunity/plus_plugins/commits/share_plus-v11.0.0/packages/share_plus)

---
updated-dependencies:
- dependency-name: share_plus
  dependency-version: 11.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2025-07-29 21:43:08 +00:00 committed by Christian Kußowski
commit 163c3352db
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
4 changed files with 16 additions and 12 deletions

View file

@ -15,9 +15,11 @@ abstract class FluffyShare {
}) async {
if (PlatformInfos.isMobile && !copyOnly) {
final box = context.findRenderObject() as RenderBox;
await Share.share(
text,
sharePositionOrigin: box.localToGlobal(Offset.zero) & box.size,
await SharePlus.instance.share(
ShareParams(
text: text,
sharePositionOrigin: box.localToGlobal(Offset.zero) & box.size,
),
);
return;
}

View file

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