You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current setFullscreen() function on Windows may show the native window border as described in #211 and the application content may flicker after setFullscreen(true), Sometimes it may freeze the UI.
On windows, there is another way to make application fullscreen:
1.Set the application to use frameless window.
2.Set the window size to the screen size.
3.Make the window cover the whole screen.
The windows taskbar will automatically hide itself.
var info =awaitgetCurrentScreen();
if (info !=null) {
await windowManager.setAsFrameless();
await windowManager.setPosition(Offset.zero);
await windowManager.setSize(
Size(
info.frame.width / info.scaleFactor,
info.frame.height / info.scaleFactor,
),
);
}
When the application is maximized, use the original way to set fullscreen.
This code to enter fullscreen mode works fine on my computer.
Could you provide an option to use this way to set fullscreen on windows?
The text was updated successfully, but these errors were encountered:
YuiHrsw
changed the title
Use frameless window to implement fullscreen on windows
[Windows] Use frameless window to implement fullscreen on windows
May 9, 2024
YuiHrsw
changed the title
[Windows] Use frameless window to implement fullscreen on windows
[Windows] Use frameless window to implement fullscreen
May 9, 2024
The current
setFullscreen()
function on Windows may show the native window border as described in #211 and the application content may flicker aftersetFullscreen(true)
, Sometimes it may freeze the UI.On windows, there is another way to make application fullscreen:
1.Set the application to use frameless window.
2.Set the window size to the screen size.
3.Make the window cover the whole screen.
The windows taskbar will automatically hide itself.
I use the window_size package to get screen size:
When the application is maximized, use the original way to set fullscreen.
This code to enter fullscreen mode works fine on my computer.
Could you provide an option to use this way to set fullscreen on windows?
The text was updated successfully, but these errors were encountered: