opt: pm share

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-28 12:11:20 +08:00
parent 7f93b42a1b
commit aed45b08ac
6 changed files with 36 additions and 27 deletions

View File

@@ -28,7 +28,7 @@ import 'package:get/get.dart';
import 'package:url_launcher/url_launcher.dart';
class PageUtils {
static void pmShare({required Map content}) async {
static void pmShare(BuildContext context, {required Map content}) async {
// debugPrint(content.toString());
List<UserModel> userList = <UserModel>[];
@@ -54,16 +54,18 @@ class PageUtils {
}
}
showModalBottomSheet(
context: Get.context!,
builder: (context) => SharePanel(
content: content,
userList: userList,
),
useSafeArea: true,
enableDrag: false,
isScrollControlled: true,
);
if (context.mounted) {
showModalBottomSheet(
context: context,
builder: (context) => SharePanel(
content: content,
userList: userList,
),
useSafeArea: true,
enableDrag: false,
isScrollControlled: true,
);
}
}
static void scheduleExit(BuildContext context, isFullScreen,