Skip to content

Document reasoning for why CustomMultiChildLayout size can't depend on children and how to do it #18426

@xster

Description

@xster

After reading the CustomMultiChildLayout and associated docs, it's not very clear why it auto-grabs the largest constraint sizes instead of passing the incoming constraints to its delegate and letting the delegate return a size for itself.

It could be a separate widget but still useful to have rather than having a custom render object to avoid all the boilerplate of doing non-layout related things.

cc @matthew-carroll

Metadata

Metadata

Assignees

No one assigned

    Labels

    d: api docsIssues with https://api.flutter.dev/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