Commit 889b5e0
authored
Preserve ResponsiveRow child state across Row/Wrap layout switches (#6663)
* ResponsiveRow: preserve child state across Row/Wrap layout switches
Key each child's ControlWidget with a GlobalObjectKey tied to its Control
identity so Flutter re-parents existing elements when the layout flips
between Row and Wrap on a breakpoint change, instead of unmounting and
re-inflating the subtree. Stateful descendants (video players, WebViews,
scroll positions) now survive window resizes across breakpoints.
Fixes #6661
* add changelog entry1 parent 1ba0abe commit 889b5e0
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | | - | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
0 commit comments