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

[Bug]: WEB: Unsupported operation: Platform._operatingSystem #35

Closed
sgehrman opened this issue May 5, 2024 · 3 comments
Closed

[Bug]: WEB: Unsupported operation: Platform._operatingSystem #35

sgehrman opened this issue May 5, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@sgehrman
Copy link

sgehrman commented May 5, 2024

Package Version

2.7.2

Flutter Version

3.19

Platforms

Web

How to reproduce?

make an emoji and drag it around. Drag is also kind of broken.

Logs (optional)

══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════
The following UnsupportedError was thrown while handling a gesture:
Unsupported operation: Platform._operatingSystem

Example code (optional)

mouse is not visible, but it's on the right side
bug

Also, adding text makes a full screen barrier, but the image isn't maximized like drawing.
Screenshot-20240504193010-2917x1794

Device Model (optional)

linux

@sgehrman sgehrman added the bug Something isn't working label May 5, 2024
@sgehrman
Copy link
Author

sgehrman commented May 5, 2024

I assume you need to use: universal_io: ^2.2.2

@hm21 hm21 closed this as completed in f1f5042 May 5, 2024
@hm21
Copy link
Owner

hm21 commented May 5, 2024

Thanks again, Steve for reporting an issue.

I found the problem with the platform error. I had a part in the code that looks like this if (Platform.isAndroid) and you right universal_io will resolve this issue and make it a bit easier for me to program the package. But I try to use not many other packages, so I just changed the code to this if(!kIsWeb && Platform.isAndroid) which should also resolve this issue.

To the part with “mouse is not visible, but it's on the right side”:
Yes, in the current version I had the problem that layers do not detect correct gestures when they are overlaid on the background image. However, in the dev branch I have already completely rewritten the way they are detected, which should solve this problem. I can't say when I will merge the dev branch into the stable branch because I still have to write more code for the new crop-rotate editor, but I hope to release it in the next weeks.

@sgehrman
Copy link
Author

sgehrman commented May 5, 2024

cool. A few minutes ago I had the same thought about doing if(!kIsWeb && Platform.isAndroid), I was going to suggest that. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants