flutter-form-builder-ecosystem / form_builder_file_picker

File picker field widget for FlutterFormBuilder.
https://pub.dev/packages/form_builder_file_picker
BSD 3-Clause "New" or "Revised" License
15 stars 33 forks source link

Web Compatibility #21

Closed rwrz closed 2 years ago

rwrz commented 2 years ago

Allow this plugin to work on the Web. PermissionHandler is not needed and was causing it to error since this plugin is not compatible with Web.

So, I'm just checking if it is Web, if it is, ignores the Permission handler.

Mitclleh commented 2 years ago

I had to manually change the permission request, other than that there is no reason not to include web support, I have tweaked some ui for my own use-cases but there are no actual issues besides the unconditional permission request.

cfvescovo commented 2 years ago

I had to do the same for my project. I agree web support should be built-in.

cedricDevWP commented 2 years ago

Thx :)

do you also have the problem of having a visible media input on your web page ? Like : https://github.com/danvick/form_builder_image_picker/issues/21

vipinkashyap commented 2 years ago

I've tried the change suggested here and it fixed my issue with uploading files using flutter web.

eaedev commented 2 years ago

Please, merge

danvick commented 2 years ago

Thanks for contributing @rwrz.

Sorry guys for the delay in merging this

eaedev commented 2 years ago

Great news! Thanks again for all of your hard work!

danvick commented 2 years ago

Just published v2.1.0