-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Loosen the constraints for Stack non-positioned children. #9581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Fixes #5381 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StackFit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be more efficient if you didn't do this as an override. The default value is just to call through to the super class, so you've made this polymorphic with needing to. Instead, set offstage can call markParentNeedsLayout directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a markNeedsLayoutForSizedByParentChange method.
Also: * Add three explicit sizing modes to Stack for non-positioned children: loose, expand, and passthrough. (All three are used.) * Fix a bug whereby layers would try to paint in the same frame as they were removed from layout (but not detached). * Fix a bug whereby Offstage wasn't properly marking the parent dirty when changing its sizedByParent flag. * Explicitly make Overlay expand non-positioned children. * Explicitly have InputDecoration pass through the constraints from its Row to its Stack children.
|
will check in on green unless i hear otherwise first |
``` 45b66b7 Revert " Roll src/third_party/dart b37aa3b036...1eb113ba27 (flutter#9559)" (flutter#9584) fc1d86b Revert "Avoid a full screen overlay within virtual displays (flutter#9343)" (flutter#9581) 140b2ae Roll src/third_party/dart b37aa3b036...1eb113ba27 (flutter#9559) 94bb7a7 Adds API for retaining intermediate engine layers (flutter#9461) 7d1508d Roll fuchsia/sdk/core/mac-amd64 from cFEtOUFvy2XYSKuSmCMDaMQV8_Y7GOif521L3x86J_4C to n9fZpXVmsbgKZzS8Q2GXxB453q8AbLpfGztsPsq47pMC (flutter#9579) 7a0bbf9 Fixed memory leak by way of accidental retain on implicit self (flutter#9329) ```
``` 45b66b7 Revert " Roll src/third_party/dart b37aa3b036...1eb113ba27 (#9559)" (#9584) fc1d86b Revert "Avoid a full screen overlay within virtual displays (#9343)" (#9581) 140b2ae Roll src/third_party/dart b37aa3b036...1eb113ba27 (#9559) 94bb7a7 Adds API for retaining intermediate engine layers (#9461) 7d1508d Roll fuchsia/sdk/core/mac-amd64 from cFEtOUFvy2XYSKuSmCMDaMQV8_Y7GOif521L3x86J_4C to n9fZpXVmsbgKZzS8Q2GXxB453q8AbLpfGztsPsq47pMC (#9579) 7a0bbf9 Fixed memory leak by way of accidental retain on implicit self (#9329) ```
``` 45b66b7 Revert " Roll src/third_party/dart b37aa3b036...1eb113ba27 (flutter#9559)" (flutter#9584) fc1d86b Revert "Avoid a full screen overlay within virtual displays (flutter#9343)" (flutter#9581) 140b2ae Roll src/third_party/dart b37aa3b036...1eb113ba27 (flutter#9559) 94bb7a7 Adds API for retaining intermediate engine layers (flutter#9461) 7d1508d Roll fuchsia/sdk/core/mac-amd64 from cFEtOUFvy2XYSKuSmCMDaMQV8_Y7GOif521L3x86J_4C to n9fZpXVmsbgKZzS8Q2GXxB453q8AbLpfGztsPsq47pMC (flutter#9579) 7a0bbf9 Fixed memory leak by way of accidental retain on implicit self (flutter#9329) ```

Also:
Add three explicit sizing modes to Stack for non-positioned
children: loose, expand, and passthrough. (All three are used.)
Fix a bug whereby layers would try to paint in the same frame as
they were removed from layout (but not detached).
Fix a bug whereby Offstage wasn't properly marking the parent dirty
when changing its sizedByParent flag.
Explicitly make Overlay expand non-positioned children.
Explicitly have InputDecoration pass through the constraints from
its Row to its Stack children.