-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityp: image_pickerThe Image Picker plugin.The Image Picker plugin.packageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
Use case
PickedFile has certain issues (like lacking some required metadata) and is only usable on the image_picker plugin.
package:cross_file is an evolved version of PickedFile that has more features, and is going to be used by more plugins, like: file_selector and camera.
Migrating image_picker to cross_file will allow image_picker to interop with the other plugins (for example: pick an image with image_picker, do some manipulations with it, and then save it to disk with file_selector!)
Proposal
- Migrate the APIs from PickedFile to XFile. This will require a major version bump of the platform interface (hopefully, the last one!)
- Migrate the Web plugin to return PickedFiles. This will require a major version bump.
- Migrate the Core plugin to use PickedFile APIs. This will also require a major version bump of the plugin.
- Use this opportunity to remove whatever 'deprecated' methods were added in the last migration.
(The null-safety migration period of this plugin would be a good time to do this migration)
mannprerak2, balvinderz and tlueder
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityp: image_pickerThe Image Picker plugin.The Image Picker plugin.packageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.