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

Screen layout bugs when UnityWidget starts #589

Closed
ernonemacher opened this issue May 19, 2022 · 4 comments
Closed

Screen layout bugs when UnityWidget starts #589

ernonemacher opened this issue May 19, 2022 · 4 comments

Comments

@ernonemacher
Copy link

Describe the bug
Screen layout bugs when UnityWidget starts, the borders of the app start to behave like a standard Unity app. Closing the UnityWidget doesn't revert this behavior, changing the AppBar of the home screen, but would affect every screen of the app.

To Reproduce
Steps to reproduce the behavior:

  1. Run the Demo app
  2. Click on anything that opens a UnityWidget
  3. Click on the back arrow going back to the HomeScreen

(In order to run with this versions I did the steps specified in this issue)

Expected behavior
The screen stays with the flutter pattern of the AppBar even when the UnityWidget is active. Or at least when after it closes.

Screenshots
1 2 3

Unity:

  • OS: macOS BigSur 11.5.2
  • Version: 2020.3.20f1

Smartphone:

  • Device: Redmi Note 8
  • OS: Android
  • Version Android version: 10, MIUI version: 12.0.4

Additional context
If this is considered the standard behavior, consider marking the issue with FeatureRequest instead of a bug.

Notice when I said "AppBar behavior or borders", I mean the Screen layout and behavior as a whole. Most noticeable in the AppBar.

This might be related to some updates in the Resolution and Presentation config on Unity. I tried using FullscreenWindowed and Windowed, with different variants of Windown Size, Resizeble Windowm etc. The only noticeable changes are marking the Hide Navigation Bar and Render outside safe area that change the behavior of the Screen, but they work just as before, changing the AppBar when UnityWidget is opened.
Screen Shot 2022-05-19 at 09 24 36

@ernonemacher
Copy link
Author

ernonemacher commented May 19, 2022

I just saw the update about the flutter 3.0.0 in the Readme, this is probably related because I am using flutter 3.0.0. I will be closing the issue for now and be doing further investigations since I used 2022.1.0+4 to test. If the problem continues I'll reopen it.

@lorisgir
Copy link

Hi have the same issue with flutter 3.19 and this library 2022.2 version, how can i fix this?

@timbotimbo
Copy link
Collaborator

@lorisgir
Flutter 3.19 has a bug. Use a lower version, or wait for 3.22 that is likely to release in the coming weeks.

#929

@lorisgir
Copy link

Actually I just saw another issue that mentioned to flag "Render outside safe area" inside project settings. Doing so fixed the issue!

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

3 participants