Remove attribute readOnly in TextField and TextFormField #45604
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
f: material design
flutter/packages/flutter/material repository.
framework
flutter/packages/flutter repository. See also f: labels.
I suggest to remove attribute
readOnly
inTextField
andTextFormField
.Removing this attribute would mean:
Since this may break already existing functionality it could be necessary to add a new widget like
InputText
which can be used standalone or within a form.See #45606 "Integrate enable/disable into FormState and FormField"
Reason:
This change will allow easier handling of input data for all type of input fields (use enabled in all of them).
The distinction between readOnly and enabled is a relic of old ages when there was only a keyboard to enter data with its tab key to jump from one field to the next one and to any actions. Nowadays we have mice and touch screens for direct access to actions without the need to "tab" through all input fields. Therefore this separation no longer makes sense.
The text was updated successfully, but these errors were encountered: