diff --git a/app/lib/screens/authentication_screen.dart b/app/lib/screens/authentication_screen.dart index dae18823..6453fe57 100644 --- a/app/lib/screens/authentication_screen.dart +++ b/app/lib/screens/authentication_screen.dart @@ -56,6 +56,14 @@ class AuthenticationScreenState extends State { WidgetsBinding.instance.addPostFrameCallback((_) => checkFingerprint()); } + @override + void dispose() { + if (widget.loginData != null && widget.loginData!.isMobile == false) { + timer.cancel(); + } + super.dispose(); + } + timeoutTimer() async { if (!mounted) { timer.cancel(); diff --git a/app/lib/screens/login_screen.dart b/app/lib/screens/login_screen.dart index 9f76b133..9860da74 100644 --- a/app/lib/screens/login_screen.dart +++ b/app/lib/screens/login_screen.dart @@ -77,6 +77,14 @@ class _LoginScreenState extends State with BlockAndRunMixin { }); } + @override + void dispose() { + if (!isMobileCheck) { + timer.cancel(); + } + super.dispose(); + } + timeoutTimer() async { if (!mounted) { timer.cancel();