deakjahn / flutter_dropzone

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

Suggestion: Add a dispose function to the widget #43

Open filipesantos18 opened 2 years ago

filipesantos18 commented 2 years ago

I have a chat app. Every chat builds its own dropzone widget, when I open a chat and send some files to the conversation everything works fine. However, when I open a second chat after that and I try to send another file in this new chat, it sends the file to the first chat. Maybe it's because the widget that comes with the packages does not have a dispose function, then it causes this bug. If you could just add a dispose to the widget, I would appreciate it. Thanks and best regards!

deakjahn commented 2 years ago

I'm not sure it's a question of disposal as every zone should have its link to the handler by a unique id. Could you possible create a minimal sample that reproduces the problem and helps us test?