Skip to content

White screen issue #902

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
Kiruthika2206 opened this issue Dec 7, 2023 · 3 comments
Open

White screen issue #902

Kiruthika2206 opened this issue Dec 7, 2023 · 3 comments
Labels
more info wanted This issue means we need more info to help

Comments

@Kiruthika2206
Copy link

Kiruthika2206 commented Dec 7, 2023

Facing white screen issue while navigating to other screens and whenever we are going and coming back to the application.

Unity version 2021.3.11f1
Flutter version 3.3.10
fuw-2022.1.7f1.unitypackage

@timbotimbo timbotimbo added the more info wanted This issue means we need more info to help label Jan 19, 2024
@emileswain
Copy link

emileswain commented Mar 14, 2024

Flutter 3.19.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 7482962148 (2 weeks ago) • 2024-02-27 16:51:22 -0500
Engine • revision 04817c99c9
Tools • Dart 3.3.0 • DevTools 2.31.1

I found i had the same issue when navigating between views. This is different from the flickering you get, which was solved by setting the MaterialPage Route transition duration to 0.

The white screen occurs a bit randomly, sometime the first view will load and display the unity scene, and the second page will be blank. Sometimes its the other way around, The first screen will be white and the second view will load. Going backand forth shows that one view works and the other doesn.t

I solved this by setting useAndroidViewSurface: true If i set this to false i get this issue even now.

I might add that when i get the white screen, i know the unity scene is runnig, because i can see the logs from a coroutine.

@timbotimbo
Copy link
Collaborator

timbotimbo commented Mar 14, 2024

@emileswain your issue has a different cause.
Flutter 3.19 simply breaks the unitywidget if useAndroidViewSurface: false.

#929

This is fixed on the flutter master branch, so it might be in 3.21 or whatever version number that gets.

@emileswain
Copy link

cool, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more info wanted This issue means we need more info to help
Projects
None yet
Development

No branches or pull requests

3 participants