navihate to notificatons when after click on push notification

This commit is contained in:
amirrezaghabeli
2025-09-24 09:02:17 +03:30
parent f630c0d0ab
commit 576a099c56
5 changed files with 75 additions and 12 deletions
+5 -2
View File
@@ -50,11 +50,14 @@ class LoginScreenRoute extends GoRouteData with _$LoginScreenRoute {
// splash route - outside the shell
@TypedGoRoute<SplashScreenRoute>(path: '/splash')
class SplashScreenRoute extends GoRouteData with _$SplashScreenRoute {
const SplashScreenRoute();
final bool? navigateToNotification;
const SplashScreenRoute({this.navigateToNotification});
@override
Widget build(BuildContext context, GoRouterState state) {
return const SplashScreen();
return SplashScreen(
navigateToNotification: navigateToNotification ?? false,
);
}
}