-
Notifications
You must be signed in to change notification settings - Fork 6k
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
@cyanglaz hello, i am trying to to fix the |
0e371c4
to
857dbdd
Compare
This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold. |
@@ -416,9 +416,20 @@ | |||
CGFloat screenScale = [UIScreen mainScreen].scale; | |||
clippingView.frame = CGRectMake(rect.x() / screenScale, rect.y() / screenScale, | |||
rect.width() / screenScale, rect.height() / screenScale); | |||
if (params.has_backdropfilter()) { |
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 think when a backdrop filter is applied to a platform view, what we need to do is not to blur the platform view, rather the blur everything else behind the platform view. So I don't think this fix will solve the issue.
The real issue is that when there is a backdrop filter that is applied to a widget on top of platform view, the platform view has to be blurred.
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.
As I know, the blur in skia couldn't have an effect on the UIKit view.
So that I think if we need to blur the UIKit View, we may use the iOS UIBlurEffect
to blur the UIKit view.
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.
Yes, we need to do some trick to make UIKitView blur.
The problem is that if the backdrop filter layer is a parent layer of PlatformView layer, it doesn't mean we need to blur the PlatformView. Instead, we need to blur everything underneath the PlatformView. This is already working.
What the flutter/flutter#43902 is about, IIRC, is when you apply backdrop filter on a widget that is above the PlatformView, the PlatformView needs to be blurred as all the other sibling widgets.
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 haven't looked into the code, but the UIBlurEffect
might be the right thing to do.
We don't want to apply UIBlurEffect
when the backdrop filter layer
is the parent, but when a backdrop filter layer
appears later than the PlatformView during the preorder tree traversal.
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. |
@cyanglaz Based on your last comment, it seems like this isn't the right fix. I am closing this for now. Please re-open when progress can be made. |
Try to provide a way to fix the issue: flutter/flutter#43902
writing and running engine tests.
///
).