There's no way to permanently dismiss soft keyboard #53398
Labels
a: text input
Entering text in a text field or keyboard related problems
c: new feature
Nothing broken; request for a new capability
c: proposal
A detailed proposal for a change to Flutter
framework
flutter/packages/flutter repository. See also f: labels.
r: fixed
Issue is closed as already fixed in a newer version
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.The text was updated successfully, but these errors were encountered: