-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Closed
Copy link
Description
When picking an image from the gallery using the image_picker plugin, the image file in the gallery is deleted by image_picker if the image is scaled(exceeds the maxWidth or maxHeight limit).
It seems that this issue was introduced in flutter/plugins#1288 which was intended to delete the original image captured from the camera(#23500), but the patch forgot to check the image source.
Steps to Reproduce
- use the image_picker plugin:
0.5.0+9(issue introduced in0.5.0+6) - just write a simple demo to pick an image from the gallery with
maxWidthandmaxHeightset. - pick an image from the gallery which exceeds the
maxWidthandmaxHeightlimit. - Boom. The original image file just vanished.
Logs
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.13, on Mac OS X 10.14.3 18D109, locale en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.5)
[✓] VS Code (version 1.32.3)
[!] Proxy Configuration
! NO_PROXY is not set
[✓] Connected device (1 available)
! Doctor found issues in 1 category.
Metadata
Metadata
Assignees
Labels
No labels