From 864cbe73b75d8d75b12b4d5e9c597b816932e95c Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Nov 2025 01:54:01 +0800 Subject: [PATCH] :bug: Try to fix share intent fails --- lib/widgets/app_wrapper.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/widgets/app_wrapper.dart b/lib/widgets/app_wrapper.dart index a177497e..31cd9309 100644 --- a/lib/widgets/app_wrapper.dart +++ b/lib/widgets/app_wrapper.dart @@ -130,6 +130,17 @@ class _AppWrapperState extends ConsumerState return; } + // Special handling for share intent deep links + // Share intents are handled by SharingIntentService showing a modal, + // not by routing to a page + if (path == '/share') { + if (!kIsWeb && + (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) { + windowManager.show(); + } + return; + } + final router = ref.read(routerProvider); if (uri.queryParameters.isNotEmpty) { path =