-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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
A uikitview is below B uikitview, but A uikitview is refreshed, so that B uikitview cannot respond to the click event #118366
Comments
problem : When the red view comes out, the green button cannot be clicked |
I can reproduce this issue with the steps above. This may be a duplicate of #37579 but I cannot be certain of it. Labeling for further insights from the team |
This doesn't look like #37579,My problem is inevitable, and a demo is provided,so,how to solve this problem? |
@chikang The team has yet to look at this issue and prioritize it. Unfortunately, the only thing to do is wait for that to happen |
Did some initial investigation. From the debug view it looks like the green box is on top of the button: However, in the actual screen, the red button is not covered by the green box. So my guess is that flutter's platform view actually crop out the central area of green box so that it doesn't cover the red button. @cyanglaz probably has more insight? |
Is the green uikitview intended to be below the red uikitview? |
@cyanglaz I think so, the red button is displayed using "showDialog" (which i assume should be the highest z order?):
|
So it might be a issue with zIndex of PlatformView when displaying in a dialog? I think the click event worked as expected. The green view suppose to cover the red view, so the red view should not be handle touch events. The issue is the green view is displaying at the wrong zIndex. |
I also think it has something to do with zIndex, but how to solve it, I don't know |
How can red view get click events? |
Is there a widget or API to solve this problem? |
I had the same problem: |
Hi, I got some good leads on this issue, but later got pulled into another issue so I paused it. Will resume after that issue is resolved. |
@chikang yep, from where i left off, it should be solvable if im not mistaken. |
This comment was marked as duplicate.
This comment was marked as duplicate.
@chikang please refer to https://github.com/flutter/flutter/wiki/Issue-hygiene#do-not-add-me-too-or-same-or-is-there-an-update-comments-to-bugs. When there are update to report on this issue, it will be commented on and/or closed. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
step:
1: Click the "Click Me" button, and a red B_uikitView native control pops up.
2: Then wait 5 seconds and the A_uikitView native control will show up,
3: At this point, the red B_uikitView native button is unresponsive
red button dont click!!!!!! why!!!!
my demo
UIKitViewDemo.zip
The text was updated successfully, but these errors were encountered: