-
Notifications
You must be signed in to change notification settings - Fork 25
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
Unhandled Exception: mainWindow not found #30
Comments
I have the same problem。
|
I got the same problem with the function setMinWindowSize. It was working before, but today it was not working a few times but not logging any error to the console. So I made a print of the result of the function and it says "mainWindow not found". I'm using MacOS and I call the function before the runApp. The problem seems to happen when the program opens while I am full-screen using the IDE or other screen that is not the desktop where the app opens. |
I have the same occurrence pattern as @hyungtaecf Everything runs fine as long as I keep my computer's focus on where the desktop simulator open. Using MacOS, Flutter 2.13, beta channel |
PR #33 will help you guys. |
Can't set app to full screen using the following command:
await DesktopWindow.setFullScreen(true);
Error:
Environment:
MacOS 11.4 Big Sur
Mac Mini M1
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.55.2)
[✓] Connected device (1 available)
What could I have done wrong?
The text was updated successfully, but these errors were encountered: