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

The fullScreen is not functioning properly. #458

Open
ibaoyun opened this issue May 12, 2024 · 3 comments
Open

The fullScreen is not functioning properly. #458

ibaoyun opened this issue May 12, 2024 · 3 comments

Comments

@ibaoyun
Copy link

ibaoyun commented May 12, 2024

During waitUntilReadyToShow, the fullScreen is set to true. However, when the window is restored using setFullScreen(false), it only displays the background color without any content and the taskbar icon also disappears. Additionally, calling windowManager.minimize(); has no effect either. The platform in use is Windows.

@Arvinth-Krishna
Copy link

Yes, I'm facing the same issue, when I switch from one display to another.

@humam-alBasha
Copy link

humam-alBasha commented May 27, 2024

You can skip the issue until it is resolved .

const WindowOptions windowOptions = WindowOptions( size: Size(800, 600), center: true, backgroundColor: Colors.transparent, skipTaskbar: false, // titleBarStyle: TitleBarStyle.hidden, ); windowManager.waitUntilReadyToShow(windowOptions, () async { await windowManager.show(); await windowManager.focus(); await windowManager.setFullScreen(true); });

@humam-alBasha
Copy link

In the setFullScreen function , setSize is Future function need await
// (Windows) Force refresh the app so it 's back to the correct size
// (see GitHub issue #311)
if (Platform.isWindows) {
final size = await getSize();
setSize(size + const Offset(1, 1));
setSize(size);
}

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