Open jctaoo opened 1 year ago
Same likes a upstream (macos_window_utils) related issue, macos_window_utils not work and drawing nothing too.
Interesting. This issue seems to be similar to https://github.com/alexmercerind/flutter_acrylic/issues/75#issuecomment-1512472751, but I also cannot reproduce it. Do you experience the same issue on macos_window_utils 1.1.1? Also, does the same issue occur with Flutter 3.7.10?
I checkout to flutter 3.7.10 and macos_windows_utils 1.1.1 , my app's view appears on window but acrylic effect not apply and hot reload not work.
Using macos_windows_utils 1.1.2 and flutter 3.7.10, the error in #75 not appears but my view lost like:
I run my app in xcode and it seems that we lost FlutterView?
Did you modify your MainFlutterWindow.swift
file as described here? If you didn’t, then that explains why version 1.1.1 didn’t work for you. Version 1.1.2 no longer requires this modification, though if you didn’t do it, could you perhaps do it anyway and see if that changes anything?
EDIT: More importantly, does the macos_window_utils example project work correctly on your end? Or does the issue only arise in your app?
Did you modify your
MainFlutterWindow.swift
file as described here? If you didn’t, then that explains why version 1.1.1 didn’t work for you. Version 1.1.2 no longer requires this modification, though if you didn’t do it, could you perhaps do it anyway and see if that changes anything?EDIT: More importantly, does the macos_window_utils example project work correctly on your end? Or does the issue only arise in your app?
Thanks. Thats it. Looks like this step is still necessary for flutter_acrylic: ^1.1.2
Did you modify your
MainFlutterWindow.swift
file as described here? If you didn’t, then that explains why version 1.1.1 didn’t work for you. Version 1.1.2 no longer requires this modification, though if you didn’t do it, could you perhaps do it anyway and see if that changes anything? EDIT: More importantly, does the macos_window_utils example project work correctly on your end? Or does the issue only arise in your app?Thanks. Thats it. Looks like this step is still necessary for
flutter_acrylic: ^1.1.2
It shouldn’t, though. Are you using any other plugins that could cause some interference, perhaps? 1.1.2 uses NSApp.windows.first
to find the Flutter window. Is it possible that some other plugin might mess with NSApp.windows
?
while developing my minecraft launcher (https://morpheuslauncher.it), i noticed this issue, to workaround and reproduce the issue you need to follow these steps:
1) build your flutter acrylic app through intellij 2) close application 3) back to step 1 4) now app is totally black! 5) to workaround this you need to run cleanmymac to clean caches and application back to work correctly again
in addition. if you always build using xcode instead intellij the app work always if you follow the step 5
while developing my minecraft launcher (https://morpheuslauncher.it), i noticed this issue, to workaround and reproduce the issue you need to follow these steps:
- build your flutter acrylic app through intellij
- close application
- back to step 1
- now app is totally black!
- to workaround this you need to run cleanmymac to clean caches and application back to work correctly again
in addition. if you always build using xcode instead intellij the app work always if you follow the step 5
master
. I will publish an update to pub.dev soon.EDIT: Done.
This is result of the example project.
Result of
flutter --version
:Result of
flutter doctor
: