prevent keyboard from rebuilding flutter code example Example: how to automatically close keyboard in flutter FocusScope.of(context).requestFocus(FocusNode());