Currently, there's no way to permanently dismiss the software keyboard in Flutter while maintaining the focus on a text field.
Use case
I'm creating a custom keyboard for an Android kiosk. The keyboard sends events through a Flutter plugin that uses Android runtime.exec("input keyevent KEY_CODE").
This means that the focus needs to stay on the text field in order for the custom keyboard to work.
I've tried calling SystemChannels.textInput.invokeMethod('TextInput.hide'); when a text field is updated but somehow once every few inputs the keyboard shows up for a fraction of a second.
Proposal
I'd like the TextField widget to have a property hideSoftKeyboard that defaults to false.
Currently, there's no way to permanently dismiss the software keyboard in Flutter while maintaining the focus on a text field.
Use case
I'm creating a custom keyboard for an Android kiosk. The keyboard sends events through a Flutter plugin that uses Android
runtime.exec("input keyevent KEY_CODE").This means that the focus needs to stay on the text field in order for the custom keyboard to work.
I've tried calling
SystemChannels.textInput.invokeMethod('TextInput.hide');when a text field is updated but somehow once every few inputs the keyboard shows up for a fraction of a second.Proposal
I'd like the TextField widget to have a property
hideSoftKeyboardthat defaults to false.