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

Black Window appears for a microsecond when app is started #17

Open
triggerfx opened this issue May 10, 2024 · 1 comment
Open

Black Window appears for a microsecond when app is started #17

triggerfx opened this issue May 10, 2024 · 1 comment

Comments

@triggerfx
Copy link

Whenever I start the app (debug and release) for a moment there appears a black window before it jumps up to the menu bar.

@mynameiskenlee
Copy link
Owner

mynameiskenlee commented May 16, 2024

Hi @triggerfx,

Thanks for raising this, this is intended as flutter does not support embedding flutter view to native app in macOS. A new flutter window with the flutter view controller is created when flutter starts.

I have to mock the embedding by moving the flutter view controller to the native part (menu bar) when the app starts, and then close the window. That's why a black window is appears when app start.

There is also a feature request raised in the official flutter repo for implementing flutter to macOS menu bar. You may take it a look. Flutter Desktop: Allow using native Flutter widgets in MenuBar applications

Best,
Ken

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

2 participants