From bcbc6db6f6fb9f9c9bf52058cfbafeb2e3230b64 Mon Sep 17 00:00:00 2001 From: ardiprima_ Date: Sat, 27 Feb 2021 18:06:30 +0700 Subject: [PATCH] redirect logout --- lib/screen/truth_or_dare/profile.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }, ), ],