Add check if has focus

merge-requests/773/head^2
Mohammad Aljammal 4 years ago
parent 7a696e4767
commit 87c906ae2b

@ -324,6 +324,7 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage> {
addSubjectiveInfo(
{SOAPViewModel model, List<MySelectedAllergy> myAllergiesList, List<MySelectedHistory> myHistoryList}) async {
if(FocusScope.of(context).hasFocus)
FocusScope.of(context).unfocus();
widget.changeLoadingState(true);
formKey.currentState.save();

Loading…
Cancel
Save