Skip to content

ConstrainedBox with multi-line text always grows to max width #13211

@lukef

Description

@lukef

If you embed Text inside a ConstrainedBox and the text is longer than the max constrained width then the ConstrainedBox will always grow to be the maximum width. What probably should happen is that the ConstrainedBox should only grow to match the maximum extent of the contents instead.

See below:
capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: typographyText rendering, possibly libtxtc: new featureNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.found in release: 1.22Found to occur in 1.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: solvedIssue is closed as solvedteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions