From 0bb9be9a72022aa412f72a7dc6d1ef971e3fbe9a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 1 May 2020 11:00:30 +0200 Subject: [PATCH] Fix issue when user decide to sign out --- lib/ui/widgets/init_widget.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ui/widgets/init_widget.dart b/lib/ui/widgets/init_widget.dart index ecd8609..f5013c3 100644 --- a/lib/ui/widgets/init_widget.dart +++ b/lib/ui/widgets/init_widget.dart @@ -63,8 +63,8 @@ class _InitializeWidgetState extends SafeState { print(stack); // Pop until we reach main route - Navigator.of(context) - .popUntil((settings) => ModalRoute.of(context).isCurrent); + Navigator.of(context).popUntil((settings) => + ModalRoute.of(context).isCurrent || !ModalRoute.of(context).isActive); setState(() { _error = true;