Skip to content

Overlay can't size to child when the constraints are loose #182008

Description

@knopp

Right now when the Overlay widget gets passed loose (but not infinite) constraints, it picks constraints.biggest as its size. In order for Overlay to work for views sized to content, a behavior was added where the Overlay can a child to size itself. This however only works, when constraints are infinite.

There is a missing gap here where we need Overlay to size itself to content, but in constrained but loose environment. The usecase for this is Popover window, where the size of the popover is determined by content, but there are incoming constraints from the desktop (popover can not be larger than usable desktop area)/

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktopa: layoutSystemChrome and Framework's Layout Issuesframeworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions