From 87c906ae2bf5cab5af0c107df9a156087e6956ee Mon Sep 17 00:00:00 2001 From: Mohammad Aljammal Date: Tue, 13 Jul 2021 10:57:11 +0300 Subject: [PATCH] Add check if has focus --- .../profile/soap_update/subjective/update_subjective_page.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart b/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart index 47b7e6df..7a48a786 100644 --- a/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart +++ b/lib/screens/patients/profile/soap_update/subjective/update_subjective_page.dart @@ -324,6 +324,7 @@ class _UpdateSubjectivePageState extends State { addSubjectiveInfo( {SOAPViewModel model, List myAllergiesList, List myHistoryList}) async { + if(FocusScope.of(context).hasFocus) FocusScope.of(context).unfocus(); widget.changeLoadingState(true); formKey.currentState.save();