Skip to content

image_picker PickedFile should have a "length" and "file name" method similar to File #58764

@123cristen

Description

@123cristen

In the current image_picker implementation, the only way to get the size of the file is to read the bytes. This is inefficient and unnecessary for cases when the size is used as part of a confirmation dialogue before reading the file.

https://pub.dev/documentation/image_picker_platform_interface/latest/image_picker_platform_interface/PickedFile-class.html

https://api.dart.dev/stable/2.8.4/dart-io/File/length.html

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions