Closed luohao123 closed 6 months ago
It's difficult to provide support without seeing code. Our examples try to cover basic behavior but the switch between keyboard and emoji-picker is not perfect and still can be improved in special circumstances. Let me know if I can help you further in this issue or the issue has been solved already 🙏
I'm using state management here but you can also use setState to change isEmojiShowing value
if (!store.isEmojiShowing) {
await SystemChannels.textInput.invokeMethod('TextInput.hide');
}
store.isEmojiShowing = !store.isEmojiShowing;
if (store.isEmojiShowing) {
if (focusNode.hasFocus) {
focusNode.unfocus();
}
} else {
await SystemChannels.textInput.invokeMethod('TextInput.show');
focusNode.requestFocus();
}
I assume this issue has been solved? Please open a new issue if there is an issue still remaining 🙏
I an using
onTap
for textfield to make it switch, but the quesiton is, the textfiled have aonTapOutside
func, which make if I tap outside of the textfiled, the soft keyboard will pops up