Skip to content

The fullscreen/unfullscreen moment will have windows' native window border #211

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
ismanong opened this issue Aug 29, 2022 · 7 comments · May be fixed by #531
Open

The fullscreen/unfullscreen moment will have windows' native window border #211

ismanong opened this issue Aug 29, 2022 · 7 comments · May be fixed by #531

Comments

@ismanong
Copy link

Honeycam 2022-08-29 20-22-31

There is also the issue that when zoomed out full screen, the bottom will persistently expose a few pixels of the native box colour.

Hi author, thank you for the package, how do I fix this please?

@damywise
Copy link
Contributor

damywise commented Aug 29, 2022

*These are workaround, not fixes

For hiding the native window border when going to full screen

You can call

await windowManager.hide();

before calling

windowManager.setFullScreen(true);

For the few pixels at the bottom

Use this:

await windowManager.setBounds((await windowManager.getBounds()).inflate(1));
await windowManager.setBounds((await windowManager.getBounds()).inflate(-1));

after

await windowManager.setFullScreen(false);

As for hiding the native window after zoomed out of full screen, I don't know any workaround for that.

I believe the setFullScreen() method inside the plugin needs to be further improved to fix these issues.

@ismanong
Copy link
Author

Honeycam 2022-08-30 00-39-25
@damywise
Thank you for the solution, the problem when turning on full screen has shown up properly and the process is good. However, there is still a problem with removing the full screen.

Do you have any better suggestions please?

@damywise
Copy link
Contributor

I don't, sorry about that.
Maybe use

await Future.delayed(const Duration(milliseconds: 200));

before calling the setBounds functions, but after setFullScreen(false) so the resize happens after the window is truly out of full screen mode.

@chifandeyu
Copy link

Same problem on windows10.

@zhangweihong
Copy link

I have the same problem

2 similar comments
@bullets-jyr
Copy link

I have the same problem

@bullets-jyr
Copy link

I have the same problem

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

Successfully merging a pull request may close this issue.

5 participants