diff --git a/lib/screen/truth_or_dare/profile.dart b/lib/screen/truth_or_dare/profile.dart index c80b657..4d0ba33 100644 --- a/lib/screen/truth_or_dare/profile.dart +++ b/lib/screen/truth_or_dare/profile.dart @@ -154,8 +154,8 @@ class _BuildProfileBodyState extends State { title: Text("Logout"), onTap: () { BlocProvider.of(context).add(UserLoggedOut()); - Navigator.pushNamedAndRemoveUntil( - context, homeRoute, (route) => route.isCurrent); + Navigator.pushReplacementNamed( + context, homeRoute); }, ), ],