Repository navigation
Add TextInputType.none #83567
Copy link
Copy link
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: 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.
Description
Activity
- addedin triagePresently being triaged by the triage teamPresently being triaged by the triage teama: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterand removedin triagePresently being triaged by the triage teamPresently being triaged by the triage team
on May 31, 2021 - added 15 commits that reference this issue
on Jun 3, 2021 - added a commit that references this issue
on Jun 15, 2021 - added a commit that references this issue
on Jun 16, 2021 This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Jul 30, 2021
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: 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.
Use case
It would be great to be able to disable the virtual keyboard for certain TextFields.
Proposal
Introduce
TextInputType.nonethat can be specified as the keyboard type for TextField. Flutter should not open the virtual keyboard when such text field gains focus.In order to avoid the platform keyboard popping up, Flutter for Web needs to set the input element's
inputmodeattribute tonone. This matches well with theTextInputTypeenum that is already used to define the attribute.Similarly, the rest of the platforms need to respect
TextInputType.nonewhen passed in the text input configuration.Additional notes
This would lay the foundations for custom in-app virtual keyboards: #68988 and #76072.
PR: #83974