Skip to content

Stack should either loosen or tighten constraints, not pass them through #5381

@abarth

Description

@abarth

Today, Stack passes its constraints through to its children, which has confused a number of people. Instead, the Stack should loosen its constraints by default but probably have an option to tighten them instead.

We might want to change the default alignment for stack at the same time. Currently we default to a top-left alignment but we should probably default to a center alignment.

/cc @Hixie @apwilson

Metadata

Metadata

Assignees

Labels

c: API breakBackwards-incompatible API changesframeworkflutter/packages/flutter repository. See also f: labels.waiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions