-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
ScreenListener support for macos and windows #21
Comments
I have gotten this working with MacOS. If you are running on mac and want to detect when the screen changes, update your pubspec.yml to:
Then mark a widget as inheriting ScreenListener and add an event that can update your display list, i.e.:
I'll post back with an updated ref if I get this working with Windows and also will submit a PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are ScreenListener events supported on macos and windows? Looking at the code, it seems that the only version that emits events is Linux when displays are added/removed in the following lines:
screen_retriever/linux/screen_retriever_plugin.cc
Line 192 in 4f3831a
screen_retriever/linux/screen_retriever_plugin.cc
Line 195 in 4f3831a
I would like to have that ability on the other systems, but don't have the knowledge enough to know how to modify your code to do so.
As a side note, there's also no documentation on the README going over the event and whether it is supported on different systems.
The text was updated successfully, but these errors were encountered: