-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(share_plus): fallback for shareXFiles() to use download on web #3388
fix(share_plus): fallback for shareXFiles() to use download on web #3388
Conversation
…use download on web
Thanks for the PR! I will check it in the following days. Meanwhile, there are formatting errors in |
Taking a look at it now. So I think it's a good start, but I think that if we want to follow the idea that it should always fallback to download, then on any point of failure should fall back to downloading and not just the |
Makes sense. I'll update. Also, the API docs says that I also wonder if there should be a flag on the |
I think
I was thinking that as well. Maybe is a very dirty hack, but even a static variable with a flag to enable/disable the download fallback could be an option. And then refactor properly in #3307 |
…use download on web
Updated. On a side note. The XFile.saveTo(path) on the web also makes a file download with the |
I've made some changes to the PR:
Let me know what you think |
Looks good. PS: those trailing comas are going away when dart_style is bumped to 3.0.0. Hopefully you could increase line length from 80 to 120 at that time... |
I'll go ahead and merge, if there are any other necessary changes they can go in a new PR
Interesting.. now taking a look at dart-lang/dart_style#1253 |
Description
Adds fallback to use download files on web when
Navigator.share()
failedRelated Issues
Checklist
CHANGELOG.md
nor the plugin version inpubspec.yaml
files.flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?
!
in the title as explained in Conventional Commits).