window_manager
window_manager copied to clipboard
The fullscreen/unfullscreen moment will have windows' native window border
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?
*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.
@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?
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.
Same problem on windows10.
I have the same problem
I have the same problem
I have the same problem