Skip to content

There's no way to permanently dismiss soft keyboard #53398

@Matt1700

Description

@Matt1700

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions