From 0782f08f6db09dfe9fc63b5c68aef198e55d1585 Mon Sep 17 00:00:00 2001 From: lowrt Date: Sat, 9 Aug 2025 17:18:38 +0800 Subject: [PATCH] feat(notify): click notifications --- lib/core/notify.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/core/notify.dart b/lib/core/notify.dart index 8fa5e511a..864a28408 100644 --- a/lib/core/notify.dart +++ b/lib/core/notify.dart @@ -55,6 +55,16 @@ void _navigateBasedOnChannelKey(BuildContext context, String? channelKey) { return; } + if (channelKey.startsWith('report')) { + context.push(MapPage.route(options: MapPageOptions(initialLayers: {MapLayer.report}))); + return; + } + + if (channelKey.startsWith('announcement')) { + context.push('/announcement'); + return; + } + context.go('/home'); }