incrediblezayed / file_saver

A simple flutter plugin for saving files in all platforms
https://pub.dev/packages/file_saver
BSD 3-Clause "New" or "Revised" License
75 stars 92 forks source link

Please remove Dio from dependencies #102

Open adriank opened 4 months ago

adriank commented 4 months ago

file_saver has Dio in its dependencies. I don't use Dio in my project, so this package adds unnecessary files to the app bundle. The problem is that Dio can cause security problems in the future, and including it in the project when it's not used is not a good idea. Also on Flutter web it causes the bundle to be slightly bigger for no reason.

The solution would be to switch to Http (that is probably included in every Flutter app by some other dependency) or move the downloading step to documentation.

Either way, this would require releasing a breaking change, so for now I will clone the repository and remove Dio on my own.