navihate to notificatons when after click on push notification
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user