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;