Skip to content

TextField starts with maxLines if it is set to anything other than null. #15388

@QoLTech

Description

@QoLTech

Setting maxLines allows as many lines up to that number, but it also initially starts with that many lines. So, setting maxLines to 5 starts with 5 lines, instead of 1. Is this intended and how can I work around this?

Setting maxLines to null starts it at 1 line, but expands infinitely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: text inputEntering text in a text field or keyboard related problemsc: new featureNothing broken; request for a new capabilityf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions