Add a maxLines parameter for multiline Input. (#6310)
* Add a maxLines parameter for multiline Input. If maxLines is 1, it's a single line Input that scrolls horizontally. Otherwise, overflowed text wraps and scrolls vertically, taking up at most `maxLines`. Also fixed scrolling behavior so that the Input scrolls ensuring the cursor is always visible. Fixes https://github.com/flutter/flutter/issues/6271 * oops * comments * import * test and RO.update fix * constant * fix.caretRect
This commit is contained in:
@@ -97,7 +97,7 @@ class TextFieldDemoState extends State<TextFieldDemo> {
|
||||
new Input(
|
||||
hintText: 'Tell us about yourself (optional)',
|
||||
labelText: 'Life story',
|
||||
multiline: true,
|
||||
maxLines: 3,
|
||||
formField: new FormField<String>()
|
||||
),
|
||||
new Row(
|
||||
|
||||
Reference in New Issue
Block a user