-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
a: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemsc: API breakBackwards-incompatible API changesBackwards-incompatible API changesf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Milestone
Description
Current behavior
Flutter allows obscured text fields to be multi-line, but it prevents new lines from being added to the text.
Motivation
Passwords are typically entered in single-line fields. It doesn't make sense to have a password field with multiple lines.
Another reason is that the web supports obscuring text only on single-line text fields (aka <input type="password">).
Proposed change
Throw if EditableText.obscureText is true and EditableText.maxLines is greater than 1.
Reactions are currently unavailable
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: API breakBackwards-incompatible API changesBackwards-incompatible API changesf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.