opt handle mouse back

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-28 17:46:52 +08:00
parent e1f748d7e4
commit 328034f3ed

View File

@@ -258,7 +258,13 @@ class MyApp extends StatelessWidget {
); );
if (Utils.isDesktop) { if (Utils.isDesktop) {
return MouseBackDetector( return MouseBackDetector(
onTapDown: Get.back, onTapDown: () {
if (SmartDialog.checkExist()) {
SmartDialog.dismiss();
} else {
Get.back();
}
},
child: child, child: child,
); );
} }