iOS notification widget

This commit is contained in:
2026-01-04 01:04:49 +08:00
parent 8cf03683dc
commit 6abee8d8bd
12 changed files with 1127 additions and 187 deletions

View File

@@ -269,10 +269,20 @@ class AppWrapper extends HookConsumerWidget {
return;
}
if (path == '/notifications') {
eventBus.fire(ShowNotificationSheetEvent());
return;
}
final router = ref.read(routerProvider);
if (path == '/dashboard') {
router.go('/');
return;
}
if (uri.queryParameters.isNotEmpty) {
path = Uri.parse(
path == '/dashboard' ? '/' : path,
path,
).replace(queryParameters: uri.queryParameters).toString();
}
router.push(path);