-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[image_picker_web] Listens to file input cancel event. #4453
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
[image_picker_web] Listens to file input cancel event. #4453
Conversation
f8c9ba3 to
4f1047f
Compare
|
I've updated the README to mention the current methods (not the ones I'm removing), and marked this change as a major version to prevent any issues with package resolution (I'll send a PR updating |
4f1047f to
08eb6d1
Compare
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo the version constraint.
08eb6d1 to
c40b18c
Compare
* Delegates deprecated methods to non-deprecated ones.
* Moves tests of old methods to a "Deprecated" group so they can be cleaned up easily later.
…iguration object can do.
|
Hey @stuartmorgan, here's the refresh to the |
stuartmorgan-g
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StillLGTM
flutter/packages@d00c1f9...ce53da1 2023-08-04 [email protected] [image_picker_web] Listens to file input cancel event. (flutter/packages#4453) 2023-08-04 [email protected] [in_app_purchase] Updates handling of subscription price changes in README. (flutter/packages#4643) 2023-08-03 [email protected] [pigeon] Consolidate main Dart unit tests (flutter/packages#4641) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Changes
This PR listens to the
cancelevent from theinput type=fileused by the web implementation of the image_picker plugin, so apps don't end up endlessly awaiting for a file that will never come in modern browsers (Chrome 113, Safari 16.4, or newer). Same API as #3683.Additionally, this PR:
PickedFile. (Deprecated years ago, and unused since [image_picker] Update to 1.0 #4285) (Breaking change)XFilewhich is the current return type of the package.image_picker_platform_interfaceto^2.9.0.Issues
Testing
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.