deakjahn / flutter_dropzone

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

dropzone view: targetplatform.windows is not supported #61

Open Asad0473 opened 1 year ago

Asad0473 commented 1 year ago

I am using this library in my web app not desktop app but I am still facing this issue . its working fine in debug mode but when we go to live server or you say release mode i am facing this issue

deakjahn commented 1 year ago

Yes, this is what federated plugins are about, all current Flutter plugins that support various platforms are expected to use this structure.

Yes, I removed that file. Flutter moved from Android embedding v1 to v2 gradually, less and less plugins and apps used the old one, so it no longer gets generated these days. I don't have it, either, but it remained in the repo. Even when it was used, it was generated automatically.

I'm glad to hear it works for you but then we didn't solve the problem this time around, either. :-) Anyway, I can only ask anybody who still experiences this issue to put a breakpoint or a log write into that registerWith() to see whether it gets called and executed properly.

WilliamCunhaCardoso commented 1 year ago

Facing the same problem with mac-OS.

I know the plugin is for web, and we are also building a website. When we deploy our website, such error occurs of target platform unsupported.

deakjahn commented 1 year ago

Then please, read the comment just above and try to apply a breakpoint or a log write to see.

MenuItem207 commented 1 year ago

Had a similar issue that I resolved by running 'flutter clean'

crizant commented 1 year ago

I encountered it once, also on MacOS. Didn't tweak anything, just built the flutter web once again and the error is gone.

zeevgrim commented 11 months ago

Facing the same problem with mac-OS.

I know the plugin is for the web, and we are also building a website. When we deploy our website, such an error occurs of the target platform is unsupported.

same, only after deployment.

Ahnaf16 commented 11 months ago

for me, setting the web renderer to canvaskit when building for release solved my problem. But still don't know what exactly caused the problem.

toco1001 commented 9 months ago

flutter build web --web-renderer html --release works for me.

congthanhng commented 9 months ago

i got same, but flutter build web --web-renderer html --release NOT works for me.

deakjahn commented 9 months ago

May I reiterate my message from Feb 18? We won't be able to find it out without somebody actually seeing this problem looking into the breakpoint mentioned there...

Rimzone commented 8 months ago

Had a similar issue that I resolved by running 'flutter clean'

NB

huseyinseyit commented 7 months ago

DropzoneView: TargetPlatform.windows is not supported.

-My project only web project not desktop or android, ios. -There is no error log. -Working localhost but hosting firebase and real devices, browsers don't work.

deakjahn commented 7 months ago

Please, have a look at https://github.com/deakjahn/flutter_dropzone/issues/61#issuecomment-1433883055

DavidOrakpo commented 5 months ago

I'm running into this same issue as well

DavidOrakpo commented 5 months ago

I'm not sure how to go about the 61 comment you referenced @deakjahn. Can you break it down? My case is exactly as has been explained above. I'm using canvas kit

Update: On further reading, I understand better now, but not fully. As the error only occurs in deployed sites, how do we debug that function?

deakjahn commented 5 months ago

@DavidOrakpo As you probably found in that comment, the problem is not directly in the plugin but in Flutter not calling it when it should. As I never was able to reproduce it, I can't really determine anything until somebody whole actually experiences the issue can debug it.

This shouldn't be that hard, all browsers have very large and sophisticated Developer Tools (Ctrl+Shift+I or F12). You could find the code mentioned above and put a breakpoint, much like in any other programming environment.

deakjahn commented 3 months ago

We're not yet sure whether https://github.com/deakjahn/flutter_dropzone/pull/89 solves this. Could those of you who have problems with this try that modification?