You can grab your child with a GestureDetector and add this function in the onTap
xxxxxxxxxx
onTap: () { SystemChannels.textInput.invokeMethod('TextInput.hide'); },
xxxxxxxxxx
TextFormField(
onTapOutside: (event) {
FocusManager.instance.primaryFocus?.unfocus();
},