Comments (12)
For time being, I've downgraded to version 1.1.1 which works fine on my device. Thank you for the help!
from flutter_acrylic.
Be sure to version lock macos_window_utils to 1.1.1 by adding macos_window_utils: 1.1.1
to your pubspec.yaml
(not macos_window_utils: ^1.1.1
, since you don’t want pub to be allowed to upgrade to 1.1.2).
from flutter_acrylic.
Thanks for filing the issue. Unfortunately, I am unable to reproduce it. Can you run flutter clean
and see if that resolves the issue?
If it doesn’t, what version of macOS are you running your application on? What is your minimum deployment target?
Also, does your app use any other macOS plugins? Have you made any changes to any Swift files in your project? I assume you have modified your MainFlutterWindow.swift
file. Can you post it here?
from flutter_acrylic.
Hello thank you for quick response.
I'm try to run the example app from the repo. So haven't made any modifications to the code
Running on:
Flutter (Channel stable, 3.7.10, on Mac OS X 10.15.7 19H2026 darwin-x64,
locale en-GB)
Xcode - develop for iOS and macOS (Xcode 12.3)
CocoaPods version 1.11.3
from flutter_acrylic.
I can see that you’re running a much older version of macOS than I am, so at first I suspected you were running into some sort of conditional compilation problem, but after checking the code I don’t think that’s the case.
Alright, could you perhaps clone the macos_window_utils repo on your machine and see if the same issue arises when running its example project? flutter_acrylic depends on this package for its macOS functionality, so technically speaking, this is the package that is causing the bug.
If you observe the same issue, could you open the macos/Classes/MacOSWindowUtilsViewController.swift
file, and change line 16 from
self.flutterViewController = flutterViewController ?? self.flutterViewController
to
self.flutterViewController = flutterViewController ?? FlutterViewController()
and see if that resolves the issue?
from flutter_acrylic.
I made the mentioned changes
Launching lib/main.dart on macOS in debug mode...
Building macOS application...
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
Error launching application on macOS.
from flutter_acrylic.
Interesting. Does running flutter clean
help?
from flutter_acrylic.
No luck, same issue
from flutter_acrylic.
Does running the macos_window_utils_example.app.zip (from Release v1.1.2) cause the same issue, or does it only occur when the app has been compiled on your end?
from flutter_acrylic.
Yes this worked, so yes maybe the compiling issue
from flutter_acrylic.
That’s weird. I’m happy that this is a compilation issue at least, because I was worried that a seemingly working app might fail on a different machine. Glad that isn’t the case.
That said, I’m still puzzled as to how the app can compile differently on your machine than it does on mine. What happens when you run the macos_window_utils example through Xcode (by opening example/macos/Runner.xcworkspace
)? Does Xcode show any warnings? Does cleaning the cache via Product → Clean help? Are there any differences between running in debug, profile, or release mode?
from flutter_acrylic.
With
self.flutterViewController = flutterViewController ?? FlutterViewController()
I tried running it with xcode (was not able to run without this line), I was able to compile but it only shows as blank screen.
Same issue on debug and release mode
from flutter_acrylic.
Related Issues (20)
- windows10 aero effect color adjustment
- It doesn't open HOT 3
- expose aera transparent ratio API on windows10
- macOS broken HOT 10
- Usage of `macos_window_utils` broken in 1.1.1 HOT 6
- [Question] is there any way for customize unfocused window color of Window Effects like mica/acrylic/tabbed?
- windows11 acrylic effect changed
- Upgrade to macos_window_utils 1.1.2
- Replace the deprecated `backgroundColor` with `colorScheme.background` in `/example/lib/widgets/macos_action_menu/description_display.dart`
- Setup linting and fix linter errors
- Improve macos_window_utils import
- hideTitle takes no effect HOT 3
- Not working on macOS 12.3.1 (21E258) and flutter 3.7.11 HOT 8
- Not work after importing flutter_easyloading HOT 2
- macOS - Running in release mode causes program to hang HOT 9
- flutter_acrylic.Window.hideWindowControls() not support on linux HOT 1
- Not Working on Android ,
- Tint colour does not work on Mac OS when using WindowEffect.acrylic HOT 2
- WindowEffect.aero not working properly in windows 11 its just transparent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_acrylic.