-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add TextInputType.none #83974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TextInputType.none #83974
Conversation
TextInputType.none makes it possible to disable the virtual keyboard for certain TextFields, and lays the foundations for custom in-app virtual keyboards (flutter#76072). Ref: flutter#83567
LongCatIsLooong
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I'll hold off until the engine changes are LGTM'd.
|
I suppose there's not much we can do on Windows at this point. |
|
On macOS, the Accessibility Keyboard is a persistent floating top-level window, and its visibility is controlled by the user. So nothing to do on macOS either? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Looks like the analyzer is down or something? It's not able to run.
Edit: Windows and Mac seem ok to me also. I would think it's desired that the user can still control an accessibility keyboard even if a Mac app has implemented a custom virtual keyboard using this feature.
|
@jpnurmi Could you try merging/rebasing the branch to the tip of the tree? |
|
If keyboardType is given |
TextInputType.nonemakes it possible to disable the virtual keyboard for individual TextFields, and lays the foundations for custom in-app virtual keyboards (#76072).This is just the framework part that merely introduces the
TextInputType.noneenum value. For the actual functionality, the engine needs to be adapted for all platforms to respectTextInputType.nonewhen passed in the text input configuration.macOSWindowsCloses: #83567
Pre-launch Checklist
///).