Skip to content

TextFormField does not follow Min / Max Line rules as indicated. #80133

@zaidkazi

Description

@zaidkazi

Flutter 2.0.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c5a4b40 (5 weeks ago) • 2021-03-04 09:47:48 -0800

In reference to #27205

The behaviour for minLines and maxLines being set along with expands = false to avoid the textField from growing outside that does not work.

How do you achieve the behaviour for example to have min lines as 1 and max lines as 5

the textfield start with a line size of 1 and grows until 5. After line 5 instead of growing vertically via scroll it should stop user input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsf: material designflutter/packages/flutter/material repository.found in release: 2.0Found to occur in 2.0found in release: 2.1Found to occur in 2.1frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions