-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version
Description
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.
Saifallak, technolion, vincent2yui, NikhilKukreja26 and mdddj
Metadata
Metadata
Assignees
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer version