[Breaking Change] Password text fields shouldn't be multi-line

155 views
Skip to first unread message

Mouad Debbar

unread,
Oct 2, 2019, 6:07:54 PM10/2/19
to Flutter Public Announcements (flutter-announce)

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.




Github issue: https://github.com/flutter/flutter/issues/41853

Justin McCandless

unread,
Dec 5, 2019, 3:22:27 PM12/5/19
to Flutter Public Announcements (flutter-announce)
For anyone searching for this in the future, the PR that closed the issue and introduced this breaking change was https://github.com/flutter/flutter/pull/42470.


Justin
Reply all
Reply to author
Forward
0 new messages