-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
a: 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.
Milestone
Description
Steps to Reproduce
On all platforms
- Select text that includes a newline and copy it.
- Paste into a single-line text field. e.g., the Name field in the Gallery Text fields demo.
Text overflows down the screen. Expected behaviour is that the text is inserted with newlines replaced with spaces.
On iOS only
- Open Flutter Gallery on an iOS device and open the Text fields demo.
- Tap in the Name field. Keyboard pops up.
- Tap the return key.
A newline is inserted. For single-line textfields, we should probably set returnKeyType to UIReturnKeyDone.
Flutter Doctor
[✓] Flutter (on Mac OS X 10.12.4 16E195, channel master)
• Flutter at /Users/cbracken/src/flutter/flutter
• Framework revision c12c019bcc (3 hours ago), 2017-04-11 13:48:04 -0700
• Engine revision 5d9a642257
• Tools Dart version 1.23.0-dev.11.6
Metadata
Metadata
Assignees
Labels
a: 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.