Skip to content
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

Status bar and navigation bar Settings are overwritten #988

Open
NightRannie opened this issue Oct 29, 2024 · 1 comment
Open

Status bar and navigation bar Settings are overwritten #988

NightRannie opened this issue Oct 29, 2024 · 1 comment

Comments

@NightRannie
Copy link

I set on flutter SystemChrome setEnabledSystemUIMode (SystemUiMode. EdgeToEdge); However, this setting was overwritten when unity started, and the switch page could not be restored

I wish there was a value to keep them consistent,
I tried to add a Android plugin to the source code to set SystemUiMode.edgeToEdge and it worked

Here is the code

2
1

@timbotimbo
Copy link
Collaborator

This is a known issue for all Flutter & Unity plugins.

On Android Unity might override settings like Fullscreen, screen orientation and the navigation bar once it boots up.
Further changes from Flutter's systemchrome while Unity is active don't make a difference.
You can make changes from the Unity side to revert things.

In my app I send a message to Unity which handles it using the Unity libraries like Screen.Fullscreen = false; Screen.Orientation = ...;

You can find related issues when you search for fullscreen in the issues list. For example #550

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