deakjahn / flutter_dropzone

A drag-and-drop Flutter plugin (Web). Only web and only from outside into Flutter.
https://pub.dev/packages/flutter_dropzone
85 stars 36 forks source link

Webbrowser displays "TargetPlatform.windows is not supported" #60

Closed NeariX67 closed 1 year ago

NeariX67 commented 1 year ago

I am using this library for a web page, it works fine in a debug session from vscode (chrome), but apparently not if compiled to JS and hosted on a webserver. dropzone This is displayed in Chrome and Firefox on Windows. System used for compiling and hosting is Debian.

deakjahn commented 1 year ago

Being a web-only plugin (the About box says: "A drag-and-drop Flutter plugin (Web). Only web and only from outside into Flutter."), this doesn't really surprise me. :-)

TargetPlatform.windows is an app compiled to a Windows desktop app, isn't it?

NeariX67 commented 1 year ago

You are right, but you didn't get the issue here. I am indeed running on Web, not a compiled Windows version. That's the strange thing.

deakjahn commented 1 year ago

Then I might need to ask for a reproducible sample because I can't really tell what's going on, even less what you actually tried.

rolandtolnay commented 1 year ago

Hi, @deakjahn I have the same issue when running my web-app in Chrome on macOS (debug).

Screenshot 2022-11-14 at 20 33 52

EDIT: Damn, my bad. Its likely I haven't relaunched the project after adding the plugin (hot-restart isn't enough). Ran it from scratch, and works now!

deakjahn commented 1 year ago

Glad to hear. :-)