hide keyboard in flutter

46

FocusScope.of(context).unfocus()
/// Hide the soft keyboard.
void hideKeyboard(BuildContext context) {
  FocusScope.of(context).requestFocus(FocusNode());
}

Comments

Submit
0 Comments