Skip to content

Android View layout disorder rendering flicker when exit the unity screen #17

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

Open
Cheong43 opened this issue Jul 8, 2022 · 3 comments

Comments

@Cheong43
Copy link
Member

Cheong43 commented Jul 8, 2022

A P4 level bug causing PlatformView on the UnityWidget layout and rendering problems

Full detail plz look up flutter/flutter#103630

The main reason issue: flutter/engine#33599

Current Solution:
The latest master channel flutter(3.1.0 pre) already merge the improved PR, which improved a lot but bug still here:(
I am testing the result of later version of Android SDK level(24+)

But also considering downgrade to flutter 2.10.5, I would try my best to avoid though

PS: this bug does not exist in iOS.

@Cheong43
Copy link
Member Author

Cheong43 commented Jul 8, 2022

screen-20220708-222309.2.mp4

@timbotimbo
Copy link

timbotimbo commented Aug 2, 2022

I don't know this project, but I found this issue by looking at issues related to flutter_unity_widget.

The flicker is actually the page transition failing to render properly.
If you add a custom transition for this page where the duration is 0, you won't get the flicker.

It won't happen in flutter 2.10.5 because the plugin uses a different type of platformview by default in Flutter < 3.0
This was disabled for Flutter 3.0 because of the issues you linked.

So far this seems to be fixed in Flutter 3.3.0-0.0.pre when you enable the old behaviour in the plugin.

@Cheong43
Copy link
Member Author

Cheong43 commented Aug 2, 2022

I don't know this project, but I found this issue by looking at issues related to flutter_unity_widget.

The flicker is actually the page transition failing to render properly. If you add a custom transition for this page where the duration is 0, you won't get the flicker.

It won't happen in flutter 2.10.5 because the plugin uses a different type of platformview by default in Flutter < 3.0 This was disabled for Flutter 3.0 because of the issues you linked.

So far this seems to be fixed in Flutter 3.3.0-0.0.pre when you enable the old behaviour in the plugin.

Thanks for your great comment! Agree with adding transition will help -- I would try to help test out more conditions in the issue you open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants