-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Use case
The Container
widget changes the tree hierarchy when its arguments change. This causes its child will lose its state if it doesn't have a global key.
Example by @justinmc: https://dartpad.dev/?id=bd243d23a7fd661563519c3eebece032
Proposal
If possible, we should fix Container
such that updating its configuration doesn't cause its child to lose state.
If not possible, we should update Container
's docs to explain this problem and how to use a global key to workaround it.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team