From 26e7eed5dba32ca5358d0f734879148dca84e8c5 Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 8 Nov 2024 16:46:33 +0700 Subject: [PATCH] Fix keyboard dose not close when enter username then login success on iOS --- lib/features/login/presentation/login_controller.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/features/login/presentation/login_controller.dart b/lib/features/login/presentation/login_controller.dart index e3e73d664..7946426e3 100644 --- a/lib/features/login/presentation/login_controller.dart +++ b/lib/features/login/presentation/login_controller.dart @@ -471,6 +471,8 @@ class LoginController extends ReloadableController { void invokeDNSLookupToGetJmapUrl() { log('LoginController::invokeDNSLookupToGetJmapUrl:_username $_username'); + FocusManager.instance.primaryFocus?.unfocus(); + if (_username == null) { consumeState(Stream.value(Left(AuthenticationUserFailure(CanNotFoundUserName())))); } else {