-
Notifications
You must be signed in to change notification settings - Fork 56
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
The child provided to decorator functions is larger than it should be #201
Comments
Oh, no, looking at the code, I think this is because I think fixing this would require using |
That or, move the decorator function to wrap a smaller part of the tree, ie a part that is being laid out by the CustomMultiChildLayout |
Thanks for the contribution and the PR 💙 Closing this since your PR is merged. |
Bug report
Describe the bug
With the
decorator
argument onWoltModalSheet.show
you can provide a Widget tree in which the modal sheet will essentially be embedded as a child.I want to use the decorator to add a blurred background to the sheet.
Unfortunately, the child provided to the decorator function is always as large as
maxPageHeight
, so when I wrap it with aBackdropFilter
and aClipRRect
, I will essentially have a large blank blurred space on top of my sheet if the sheet resizes itself to be smaller thanmaxPageHeight
.Steps to reproduce
Expected behavior
I'd expect child to be only as large as the area that it paints with content.
The text was updated successfully, but these errors were encountered: