flutter when tap a space close keyboard code example
Example 1: flutter trigger show off keyboard
FocusScope.of(context).unfocus()
Example 2: flutter unfocus textfield
FocusScope.of(context).unfocus();
FocusScope.of(context).unfocus()
FocusScope.of(context).unfocus();