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

Linux - repositioning on start #497

Open
spajdo opened this issue Oct 8, 2024 · 0 comments
Open

Linux - repositioning on start #497

spajdo opened this issue Oct 8, 2024 · 0 comments

Comments

@spajdo
Copy link

spajdo commented Oct 8, 2024

Hi. I want to use this library but it does weird thing. I have setup it like this
`
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await windowManager.ensureInitialized();
windowManager.hide();

WindowOptions windowOptions = const WindowOptions(
size: Size(1200, 700),
center: true,
skipTaskbar: false,
titleBarStyle: TitleBarStyle.normal,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {
await windowManager.show();
await windowManager.focus();
});

runApp(const MyApp());
}
`

And when I'm starting my application, it appears on left site of my screen and after 1 second (maybe 2) it is repositioning to center of my screen. It doesn't look good. Can I setup it somehow to appears right in the center of my screen?

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

1 participant