upgrade dep

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-26 15:09:37 +08:00
parent bb36876d1e
commit 9072d6e051
10 changed files with 66 additions and 68 deletions

View File

@@ -42,13 +42,13 @@ class Utils {
static Future<void> shareText(String text) async {
try {
Rect? sharePositionOrigin;
if (await isIpad()) {
sharePositionOrigin = Rect.fromLTWH(0, 0, Get.width, Get.height / 2);
}
Share.share(
text,
sharePositionOrigin: sharePositionOrigin,
SharePlus.instance.share(
ShareParams(
text: text,
sharePositionOrigin: await Utils.isIpad()
? Rect.fromLTWH(0, 0, Get.width, Get.height / 2)
: null,
),
);
} catch (e) {
SmartDialog.showToast(e.toString());