Git Product home page Git Product logo

images_picker's Introduction

images_picker

images-picker

Flutter plugin for selecting images/videos from the Android and iOS image library, and taking pictures/videos with the camera,save image/video to album/gallery

ios(10+): ZLPhotoBrowser

android(21+): PictureSelector

Support

  • pick multiple images/videos from photo album (wechat style)
  • use camera to take image/video
  • crop images with custom aspectRatio
  • compress images with quality/maxSize
  • save image/video to album/gallery
  • localizations currently support
    • System, Chinese, ChineseTraditional, English, Japanese, French, Korean, German, Vietnamese,

Install

For ios:

<key>NSCameraUsageDescription</key>
<string>Example usage description</string>
<key>NSMicrophoneUsageDescription</key>
<string>Example usage description</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Example usage description</string>

For android:

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Goto android/app/build.gradle
minSdkVersion 21

And,

images_picker: ^newest
import "package:images_picker/images_picker.dart";

Usage

  • simple picker image
Future getImage() async {
    List<Media> res = await ImagesPicker.pick(
      count: 3,
      pickType: PickType.image,
    );
// Media
// .path
// .thumbPath (path for video thumb)
// .size (kb)
}
  • simple picker video
Future getImage() async {
    List<Media> res = await ImagesPicker.pick(
      count: 3,
      pickType: PickType.video,
    );
// Media
// .path
// .thumbPath (path for video thumb)
// .size (kb)
}
  • simple open camera
ImagesPicker.openCamera(
  pickType: PickType.video,
  maxTime: 15, // record video max time
);
  • add gif support
ImagesPicker.pick(
  // ...
  gif: true, // default is true
);
  • add max video duration pick
ImagesPicker.pick(
  // ...
  maxTime: 30, // second
);
  • add cropper (gif crop unsupported)
ImagesPicker.pick(
  // ...
  // when cropOpt isn't null, crop is enabled
  cropOpt: CropOption(
    aspectRatio: CropAspectRatio.custom,
    cropType: CropType.rect, // currently for android
  ),
);
  • add compress
ImagesPicker.pick(
  // ...
  // when maxSize/quality isn't null, compress is enabled
  quality: 0.8, // only for android
  maxSize: 500, // only for ios (kb)
);
  • set language
ImagesPicker.pick(
  language: Language.English,
// you can set Language.System for following phone language
)
  • save file to album
ImagesPicker.saveImageToAlbum(file, albumName: "");
ImagesPicker.saveVideoToAlbum(file, albumName: "");
  • save network file to album

because the HTTP request is uncontrollable in plugin(such as progress),you must download file ahead of time

void save() async {
    File file = await downloadFile('https://xxx.example.com/xx.png');
    bool res = await ImagesPicker.saveImageToAlbum(file, albumName: "");
    print(res);
}

Future<File> downloadFile(String url) async {
  Dio simple = Dio();
  String savePath = Directory.systemTemp.path + '/' + url.split('/').last;
  await simple.download(url, savePath,
      options: Options(responseType: ResponseType.bytes));
  print(savePath);
  File file = new File(savePath);
  return file;
}

All params

// for pick
int count = 1,
PickType pickType = PickType.image,
bool gif = true,
int maxTime = 120,
CropOption cropOpt,
int maxSize,
double quality,

// for camera
PickType pickType = PickType.image,
int maxTime = 15,
CropOption cropOpt,
int maxSize,
double quality,

proguard-rules

-keep class com.luck.picture.lib.** { *; }

-dontwarn com.yalantis.ucrop**
-keep class com.yalantis.ucrop** { *; }
-keep interface com.yalantis.ucrop** { *; }

License

MIT License

images_picker's People

Contributors

chavesgu avatar flutterbuddy1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

images_picker's Issues

Image automatically rotates after picking if crop options are there.

Hi there,
given below is my code for picking image.if crop options are not given , it would work fine.otherwise the picked image is rotated 90 degrees in the image view if I haven't done with any cropping.Please help me on this.

ImagesPicker.ImagesPicker.pick( count: 1, ImagesPicker.PickType.image : ImagesPicker.PickType.video, quality: 0.8, // only for android maxSize: 500, cropOpt: CropOption( aspectRatio: CropAspectRatio.custom, cropType: CropType.rect, // currently for android ) , );

ImagesPicker.ImagesPicker.openCamera( count: 1, ImagesPicker.PickType.image : ImagesPicker.PickType.video, quality: 0.8, // only for android maxSize: 500, cropOpt: CropOption( aspectRatio: CropAspectRatio.custom, cropType: CropType.rect, // currently for android ) , );

图片路径错误

相册选择多张图片时,返回的图片路径只有第一条路径正确,其他路劲获取不到图片,如何解决?
`
I/flutter (23480): /data/user/0/com.gongsibao.laowubao/cache/image_picker_dc96c995-70cd-4a73-8aeb-5ce6628b34ee579822762566439927.png

I/flutter (23480): /storage/emulated/0/Android/data/com.gongsibao.laowubao/files/Pictures/IMG_67514222.png

I/flutter (23480): /storage/emulated/0/Android/data/com.gongsibao.laowubao/files/Pictures/IMG_151597422.jpeg
`

Cant choose the aspect ratio

Hello,

And thanks first for this plugin.

I'm trying to force the aspect ratio for cropping at 1:1
I setup the CropOption with aspectRatio: CropAspectRatio(1, 1) but got a java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Integer

List<Media> res = await ImagesPicker.pick(
    count: 1,
    quality: 0.8,
    maxSize: 500,
      cropOpt: CropOption(
        aspectRatio: CropAspectRatio(1, 1),
        // aspectRatio: CropAspectRatio.wh16x9,
      ),
);

The same error happens for CropAspectRatio.wh16x9 and others parameters, except the default one: CropAspectRatio.custom

Is there another way to force the crop as a square?
Thanks

Android 拍照白屏幕

作者你好,在使用这个库时遇到了问题,拍照点击对号后白屏了, 红米 7.0,
image
image

Android error, that occurs when picking multiple photos

Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored

This is the function, where the error occurs:

Future pickPhoto() async {
    List<Media> _result =
        await ImagesPicker.pick(count: 4, gif: false, maxSize: 5000);

    if (_result != null) {
      setState(() {
        _gif = null;
        _video = null;
        _photos = _result.map((media) => File(media.path)).toList();
      });
    }
  }

三星 Galaxy S 7 edge拍照报错闪退

手机型号 三星 Galaxy S7 edge
系统版本 Android 8.0.0 Samsung Experience 版本 9.0
保存信息如下:

I/zygote64(19405): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
I/zygote64(19405): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2463)
I/zygote64(19405): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:938)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:806)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:693)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:170)
I/zygote64(19405): at void com.luck.picture.lib.PictureBaseActivity.onCreate(android.os.Bundle) (PictureBaseActivity.java:176)
I/zygote64(19405): at void com.luck.picture.lib.PictureSelectorCameraEmptyActivity.onCreate(android.os.Bundle) (PictureSelectorCameraEmptyActivity.java:52)
I/zygote64(19405): at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:7183)
I/zygote64(19405): at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1220)
I/zygote64(19405): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2910)
I/zygote64(19405): at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3032)
I/zygote64(19405): at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
I/zygote64(19405): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1696)
I/zygote64(19405): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
I/zygote64(19405): at void android.os.Looper.loop() (Looper.java:164)
I/zygote64(19405): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6944)
I/zygote64(19405): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote64(19405): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:327)
I/zygote64(19405): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1374)
I/zygote64(19405): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.seck.water_app-dmaR8U80vNJIyjeKKr1svg==/base.apk"],nativeLibraryDirectories=[/data/app/com.seck.water_app-dmaR8U80vNJIyjeKKr1svg==/lib/arm64, /data/app/com.seck.water_app-dmaR8U80vNJIyjeKKr1svg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
I/zygote64(19405): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93)
I/zygote64(19405): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/zygote64(19405): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/zygote64(19405): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2463)
I/zygote64(19405): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:938)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:806)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:693)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:170)
I/zygote64(19405): at void com.luck.picture.lib.PictureBaseActivity.onCreate(android.os.Bundle) (PictureBaseActivity.java:176)
I/zygote64(19405): at void com.luck.picture.lib.PictureSelectorCameraEmptyActivity.onCreate(android.os.Bundle) (PictureSelectorCameraEmptyActivity.java:52)
I/zygote64(19405): at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:7183)
I/zygote64(19405): at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1220)
I/zygote64(19405): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2910)
I/zygote64(19405): at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3032)
I/zygote64(19405): at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
I/zygote64(19405): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1696)
I/zygote64(19405): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
I/zygote64(19405): at void android.os.Looper.loop() (Looper.java:164)
I/zygote64(19405): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6944)
I/zygote64(19405): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote64(19405): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:327)
I/zygote64(19405): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1374)
I/zygote64(19405):
I/zygote64(19405): Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$2>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
I/zygote64(19405): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2463)
I/zygote64(19405): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:938)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:806)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:693)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:170)
I/zygote64(19405): at void com.luck.picture.lib.PictureBaseActivity.onCreate(android.os.Bundle) (PictureBaseActivity.java:176)
I/zygote64(19405): at void com.luck.picture.lib.PictureSelectorCameraEmptyActivity.onCreate(android.os.Bundle) (PictureSelectorCameraEmptyActivity.java:52)
I/zygote64(19405): at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:7183)
I/zygote64(19405): at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1220)
I/zygote64(19405): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2910)
I/zygote64(19405): at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3032)
I/zygote64(19405): at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
I/zygote64(19405): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1696)
I/zygote64(19405): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
I/zygote64(19405): at void android.os.Looper.loop() (Looper.java:164)
I/zygote64(19405): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6944)
I/zygote64(19405): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote64(19405): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:327)
I/zygote64(19405): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1374)
I/zygote64(19405): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.seck.water_app-dmaR8U80vNJIyjeKKr1svg==/base.apk"],nativeLibraryDirectories=[/data/app/com.seck.water_app-dmaR8U80vNJIyjeKKr1svg==/lib/arm64, /data/app/com.seck.water_app-dmaR8U80vNJIyjeKKr1svg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
I/zygote64(19405): at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93)
I/zygote64(19405): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
I/zygote64(19405): at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I/zygote64(19405): at void androidx.core.view.ViewCompat.setOnApplyWindowInsetsListener(android.view.View, androidx.core.view.OnApplyWindowInsetsListener) (ViewCompat.java:2463)
I/zygote64(19405): at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:938)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:806)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:693)
I/zygote64(19405): at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:170)
I/zygote64(19405): at void com.luck.picture.lib.PictureBaseActivity.onCreate(android.os.Bundle) (PictureBaseActivity.java:176)
I/zygote64(19405): at void com.luck.picture.lib.PictureSelectorCameraEmptyActivity.onCreate(android.os.Bundle) (PictureSelectorCameraEmptyActivity.java:52)
I/zygote64(19405): at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:7183)
I/zygote64(19405): at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1220)
I/zygote64(19405): at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2910)
I/zygote64(19405): at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:3032)
I/zygote64(19405): at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
I/zygote64(19405): at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1696)
I/zygote64(19405): at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
I/zygote64(19405): at void android.os.Looper.loop() (Looper.java:164)
I/zygote64(19405): at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6944)
I/zygote64(19405): at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
I/zygote64(19405): at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:327)
I/zygote64(19405): at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1374)
I/zygote64(19405):

Done button shifting

Device information: Iphone 12

Description

Expected behavior:
'Done' button should be placed correctly or removed if it's not needed

Current behavior:
'Done' button is shifted and can't be tapped.

Steps to reproduce

  1. call final pickedFiles = await ImagesPicker.pick( pickType: PickType.image, count: 1, );
  2. Allow access only for selected photos
  3. Select image.
  4. Press back arrow button.
  5. Check the bottom right side of the screen.

Images

RPReplay_Final1631271882.MP4

Could not find com.github.LuckSiege.PictureSelector:picture_library:v2.5.9.

Hi,

got this error when compiling release:

Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
[ +1 ms] > Could not find com.github.LuckSiege.PictureSelector:picture_library:v2.5.9.
[ +9 ms] Required by:
[ +4 ms] project :app > com.chavesgu.images_picker:images_picker_release:1.0

Ive tried added "maven { url 'https://jitpack.io' }" to my own build.gradle, but still the same error!

Video creation is taking very long time

Currently the recorded video will be processed and stored in this path "data/....../cache/.."
Until then user has to wait to get the path of the video.

Is there a way to get the path of the recorded video immediately ?? (I don't want any video processing and it has to be stored in default location of Camera videos)

Change WeChat Style

Hi there,Thank you for the good tool.
Can you choose the existing WeChat style as a different style? It's the White Style provided by Picture Selector.

Using a translator. sorry.

Errors during build

Camera image doesn't work

After selecting the camera option and clicking the picture, the confirm button on camera doesn't work and am unable to get camera image cause of it.

Also, can we have the option to:

  1. Change the error message when the image limit is reached while selecting the media
  2. Enable/disable preview mode while selecting the media.

App crashes on Android when calling .openCamera method

Hi! 👋 Thanks for the amazing tool 😄

What happens:
The app crashes when I call the method below.

Device:
Android 10, Oneplus 5t, real device plugged in on a Ubuntu LTS machine.

Platform:
Flutter 2.0.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1d9032c7e1 (4 days ago) • 2021-04-29 17:37:58 -0700
Engine • revision 05e680e202
Tools • Dart 2.12.3

The method:

  Future<List<Media>?> openCamera() async {
    final List<Media>? result = await ImagesPicker.openCamera(
      maxSize: 1000,
      pickType: PickType.image,
      quality: 0.9,
    );

    if (result == null) {
      return null;
    }

    if (result.isEmpty) {
      return null;
    }

    final File file = File(result.first.path);
    await ImagesPicker.saveImageToAlbum(file, albumName: 'my album name');

    return result;
  }

Error logs:
D/ViewRootImpl[MainActivity](29832): windowFocusChanged hasFocus=false inTouchMode=true W/MapperHal(29832): buffer descriptor with invalid usage bits 0x2000 D/PhoneWindow(29832): setNavigationBarColor: 0 W/m.carrotkitche(29832): Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) W/m.carrotkitche(29832): Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) D/AndroidRuntime(29832): Shutting down VM E/AndroidRuntime(29832): FATAL EXCEPTION: main E/AndroidRuntime(29832): Process: com.carrotkitchen, PID: 29832 E/AndroidRuntime(29832): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.carrotkitchen/com.luck.picture.lib.PictureSelectorCameraEmptyActivity}: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 E/AndroidRuntime(29832): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3375) E/AndroidRuntime(29832): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3514) E/AndroidRuntime(29832): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) E/AndroidRuntime(29832): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) E/AndroidRuntime(29832): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) E/AndroidRuntime(29832): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2110) E/AndroidRuntime(29832): at android.os.Handler.dispatchMessage(Handler.java:107) E/AndroidRuntime(29832): at android.os.Looper.loop(Looper.java:214) E/AndroidRuntime(29832): at android.app.ActivityThread.main(ActivityThread.java:7697) E/AndroidRuntime(29832): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(29832): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:516) E/AndroidRuntime(29832): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) E/AndroidRuntime(29832): Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 E/AndroidRuntime(29832): at java.lang.String.substring(String.java:2064) E/AndroidRuntime(29832): at com.luck.picture.lib.tools.StringUtils.renameSuffix(StringUtils.java:83) E/AndroidRuntime(29832): at com.luck.picture.lib.PictureBaseActivity.startOpenCamera(PictureBaseActivity.java:647) E/AndroidRuntime(29832): at com.luck.picture.lib.PictureSelectorCameraEmptyActivity.startCamera(PictureSelectorCameraEmptyActivity.java:120) E/AndroidRuntime(29832): at com.luck.picture.lib.PictureSelectorCameraEmptyActivity.onTakePhoto(PictureSelectorCameraEmptyActivity.java:101) E/AndroidRuntime(29832): at com.luck.picture.lib.PictureSelectorCameraEmptyActivity.onCreate(PictureSelectorCameraEmptyActivity.java:71) E/AndroidRuntime(29832): at android.app.Activity.performCreate(Activity.java:7815) E/AndroidRuntime(29832): at android.app.Activity.performCreate(Activity.java:7804) E/AndroidRuntime(29832): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1325) E/AndroidRuntime(29832): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3350) E/AndroidRuntime(29832): ... 11 more I/Process (29832): Sending signal. PID: 29832 SIG: 9 Lost connection to device. Exited (sigterm)

PS. the camera worked fine on 1.2.0. 🥇

Not support set specific Album name (sub-folder)

Hi, thanks for contributing this lib. With this library, I cannot find a way to do saveImageToAlbum and saveVideoToAlbum with an Album name (just sub-folder). Could you help?

For example, GallerySaver package can specify album name like "GallerySaver.saveImage(Image.path, albumName: albumName). But I don't like GallerySaver, it somehow has compatibility issue with my app. Will you be possible to support the useful album-name feature?

error while build app

i got this error while running the app , thats the problem logs and my project numbers :

yaml :

environment:
  sdk: ">=2.3.0 <3.0.0"

...

  images_picker: ^0.0.9

logs

AndroidManifest.xml:194:9-65 Error:
Attribute activity#com.yalantis.ucrop.UCropActivity@theme value=(@style/Theme.AppCompat.Light.NoActionBar) from AndroidManifest.xml:194:9-65
	is also present at [com.github.LuckSiege.PictureSelector:picture_library:v2.6.0] AndroidManifest.xml:66:13-58 value=(@style/Base.Theme.NoActionBar).
	Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute activity#com.yalantis.ucrop.UCropActivity@theme value=(@style/Theme.AppCompat.Light.NoActionBar) from AndroidManifest.xml:194:9-65
  	is also present at [com.github.LuckSiege.PictureSelector:picture_library:v2.6.0] AndroidManifest.xml:66:13-58 value=(@style/Base.Theme.NoActionBar).
  	Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 27s
Exception: Gradle task assembleDebug failed with exit code 1

Open camera and record video return wrong type

I use this code:
List? res =
await ImagesPicker.openCamera(pickType: PickType.video)

And the res have 1 item with path and thumpath is the same String with the tail .jpeg.
When I use this link and show to Image with code line: Image.file( File(path),). My app suddenly crash and in Painting.dart had _Exception (Exception: Invalid image data).
I am using xiaomi 10t pro.

"I know the"

If user can only choose 1 image.

1 image is chosen and user clicks on another image, then in a better design, it would just deselect the first one. But here, it gives this weird message.

Screenshot at Apr 20 17-11-12

openCamera sometime its working and sometime its Not work, crash the App In debugging mode

Environment

| Technology | Version |
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.19042.1110],
locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.58.2)
[√] Connected device (3 available)

Device information:

Description

Future openCamera(int from) async {
try {
List img = await ImagesPicker.openCamera(
pickType: PickType.image,
quality: 0.5,
maxTime: 60,
language: Language.System,
cropOpt: CropOption(
aspectRatio: CropAspectRatio(512, 512),
),
);
if (img != null) {
HelperUtil.checkInternetConnection().then((isConnected) async {
print(img[0].thumbPath);
if (isConnected) {
setState(() {
_path = img[0].thumbPath;
_image = File(_path);
imagesPath = img[0].thumbPath;
_attachController.text = 'image.jpg';
});
} else {
toastUtil.showMsg(context, internetAlert, Colors.black,
Colors.white, 12.0, "short", "bottom");
}
});
}
} catch (e) {
print(e);
}
}

Expected behavior:

Current behavior:

Steps to reproduce

  1. This
  2. Than that
  3. Then

Images

Stacktrace/Logcat

Open Camera with type Video & record, return type images

Environment

Technology Version
Flutter version 2.4.0-0.0.pre
Plugin version ^1.2.4
Android version 10
iOS version
Xcode version

Device information:

Description

open camera with type video, after record return .jpeg extension,

Expected behavior:
return video type extension

Current behavior:
return image type extension

Steps to reproduce

ImagesPicker.openCamera( pickType: PickType.video, maxTime: 15, // record video max time );

return path object, with value
path: /storage/emulated/0/Android/data/appspackage/files/Pictures/IMG_CMP_157163990.jpeg
size: 0.0
thumbPath: /storage/emulated/0/Android/data/appspackage/files/Pictures/IMG_CMP_157163990.jpeg

Stacktrace/Logcat

I/PictureFileUtils(25487): getDataColumn: _data - [column '_data' does not exist. Available columns: []] 3 D/skia (25487): --- Failed to create image decoder with message 'unimplemented' I/flutter (25487): /storage/emulated/0/Android/data/appspackage/files/Pictures/IMG_CMP_157163990.jpeg I/flutter (25487): 0.0 I/flutter (25487): /storage/emulated/0/Android/data/appspackage/files/Pictures/IMG_CMP_157163990.jpeg Lost connection to device.

is it possible to show images_picker in bottom sheet?

first of all congratulations for developing this great package...

I felt like it is far better and more advanced package then google image_picker..

I am looking little customization to match my app theme and style...

I have two questions?

  1. is it possible to show images in bottom sheet like in this or this
  2. is it possible to change appbar color, ticker color and font style... etc.,

Android resource linking failed

Flutter build apk 时报错, images_picker 0.0.9

  • What went wrong:
    Execution failed for task ':app:processReleaseResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
/Users/jz/.gradle/caches/transforms-2/files-2.1/1dc4659e6e9637d955b4d8e892d8a8e9/picture_library-v2.6.0/AndroidManifest.xml:14:5-21:15: AAPT: error: unexpected element found in .

Cannot select file if the file is too big (video)

E/AndroidRuntime(  876): java.lang.NumberFormatException: For input string: "2460155662"
E/AndroidRuntime(  876): 	at java.lang.Integer.parseInt(Integer.java:618)
E/AndroidRuntime(  876): 	at java.lang.Integer.parseInt(Integer.java:650)
E/AndroidRuntime(  876): 	at com.chavesgu.images_picker.ImagesPickerPlugin.getFileSize(ImagesPickerPlugin.java:302)
E/AndroidRuntime(  876): 	at com.chavesgu.images_picker.ImagesPickerPlugin.access$100(ImagesPickerPlugin.java:67)
E/AndroidRuntime(  876): 	at com.chavesgu.images_picker.ImagesPickerPlugin$1$1.run(ImagesPickerPlugin.java:257)

An error occurred while calling the camera

Hi, thanks for contributing this lib. With this library, I found in the Android 6.0.1 zte's camera phone call, a finished picture, click on the camera's ✅ no reaction, but if this time click ❎ can launch system normal camera back to the APP, because this is seen in the customer's phone, I can't provide the log, but I use the Android Studio simulator debugging of the ARM, also can simulate photos, But nothing ✅.

The development environment Flutter 1.22 Stable

Android builds the SDK API 29

Android Mini SDK API 21

You are using version 0.07 of your library

Looking forward your reply

Black screen shows after camera is closed only on android

Environment

Technology Version
Flutter version latest (master)
Plugin version latest
Android version 11

Device information: It works fine on some of the mobile but crashes on POCO M2 PRO 4GB. No problem in IOS build.

Description

Whenever I click a photo using this library the app shows a black screen.

Expected behavior:
After clicking the image it should show the image in the UI but it shows a black screen and sometimes crashes.

Current behavior:
It shows a black screen on some devices after clicking the image. I am attaching a video of the current behavior on poco m2 pro. It only happens on some of the android devices, works fine on IOS. The issue occurs only when the image is selected through the camera.

2021-07-31.02-39-50.mp4

Steps to reproduce

Picking the image like this

Future getImage(bool isCam) async {
    await Future.delayed(Duration(milliseconds: 300));
    List<Media> imageFile = isCam
        ? await ImagesPicker.openCamera(
            pickType: PickType.image,
            cropOpt: CropOption(),
          )
        : await ImagesPicker.pick(
            pickType: PickType.image,
            cropOpt: CropOption(),
            count: 1,
            gif: false,
          );
    _image = File(imageFile[0].path);
    setState(() {});
  } 

Showing the selected image like this

Center(
   child: Image.file(_image,
    width: width * 0.6,
    height: height * 0.23)
),

How to change to landscape for tablet?

Environment

Flutter version:
Plugin version:
Android version:
iOS version:
Xcode version:
Device information:

Description

What you'd like to happen:

Alternatives you've considered:

Images:

java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.Activity.checkSelfPermission(java.lang.String)' on a null object reference

Hi, I'm getting this error when I attempt to save a video to the gallery.

E/MethodChannel#chavesgu/images_picker(21452): Failed to handle method call
E/MethodChannel#chavesgu/images_picker(21452): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.Activity.checkSelfPermission(java.lang.String)' on a null object reference
E/MethodChannel#chavesgu/images_picker(21452): 	at com.chavesgu.images_picker.ImagesPickerPlugin.hasPermission(ImagesPickerPlugin.java:324)
E/MethodChannel#chavesgu/images_picker(21452): 	at com.chavesgu.images_picker.ImagesPickerPlugin.onMethodCall(ImagesPickerPlugin.java:176)
E/MethodChannel#chavesgu/images_picker(21452): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#chavesgu/images_picker(21452): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#chavesgu/images_picker(21452): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#chavesgu/images_picker(21452): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#chavesgu/images_picker(21452): 	at android.os.MessageQueue.next(MessageQueue.java:336)
E/MethodChannel#chavesgu/images_picker(21452): 	at android.os.Looper.loop(Looper.java:174)
E/MethodChannel#chavesgu/images_picker(21452): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
E/MethodChannel#chavesgu/images_picker(21452): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#chavesgu/images_picker(21452): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/MethodChannel#chavesgu/images_picker(21452): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I/flutter (21452): PlatformException(error, Attempt to invoke virtual method 'int android.app.Activity.checkSelfPermission(java.lang.String)' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'int android.app.Activity.checkSelfPermission(java.lang.String)' on a null object reference
I/flutter (21452): 	at com.chavesgu.images_picker.ImagesPickerPlugin.hasPermission(ImagesPickerPlugin.java:324)
I/flutter (21452): 	at com.chavesgu.images_picker.ImagesPickerPlugin.onMethodCall(ImagesPickerPlugin.java:176)
I/flutter (21452): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
I/flutter (21452): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
I/flutter (21452): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
I/flutter (21452): 	at android.os.MessageQueue.nativePollOnce(Native Method)
I/flutter (21452): 	at android.os.MessageQueue.next(MessageQueue.java:336)
I/flutter (21452): 	at android.os.Looper.loop(Looper.java:174)
I/flutter (21452): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
I/flutter (21452): 	at java.lang.refle

I use camera package to capture video.

    final video = await _cameraController.stopVideoRecording();
    final file = File(video.path);
    await ImagesPicker.saveVideoToAlbum(file);
    file.deleteSync();

path invalid return by ImagesPicker.openCamera() : "Unable to load asset"

  • iOS端,调用ImagesPicker.openCamera() 返回的path不能立即使用,会报"Unable to load asset",加点延迟就没问题。
  • 安卓端没问题
images_picker:
    dependency: "direct main"
    description:
      name: images_picker
      url: "https://pub.flutter-io.cn"
    source: hosted
    version: "1.2.4"
[✓] Flutter (Channel stable, 2.2.0, on Mac OS X 10.15.7 19H2 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.2)
[✓] VS Code (version 1.56.2)
[✓] Connected device (3 available)

选择的照片错乱

1.2.4 版本,华为手机P40,选择了图片1,上传了相册里的另一张图片2.望解决。谢谢

Open Camera with quality option return a 0 KB file in Android

Environment

Technology Version
Flutter version 2.3.0-17.0.pre.271
Plugin version 1.2.4
Android version 30.0.3

Device information: Samsung Galaxy A51

Description

Expected behavior:

ImagesPicker.openCamera with quality: 0.5 and pickType: PickType.video return a List with one Media that has the size disminuyed

Current behavior:

ImagesPicker.openCamera with quality: 0.5 and pickType: PickType.video return a List with one Media that size is 0 KB and is broken

Steps to reproduce

List? res = await ImagesPicker.openCamera(
pickType: PickType.video,
quality: 0.5
);

images_picker on iOS displays only Chinese. why not english?

How can I make it support localization? I need at least English by default.

I have added this to Info.plist but no avail...

<key>CFBundleLocalizations</key>
        <array>
            <string>en</string>
        </array>
	<key>CFBundleAllowMixedLocalizations</key>
	<true/>

Build Failed : Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-26.0-android.jar

Build Log

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  
java.lang.RuntimeException: Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-26.0-android.jar (com.google.guava:guava:26.0-android) and listenablefuture-1.0.jar (com.google.guava:listenablefuture:1.0)

  Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Dependencies in use:
cached_network_image: ^2.3.2+1
calendar_time: ^1.0.1
cloud_firestore: ^0.14.1+2
connectivity: ^0.4.9+3
cupertino_icons: ^1.0.0
firebase_auth: ^0.18.1+1
firebase_core: ^0.5.0
fluttertoast: ^7.1.1
grouped_list: ^3.5.0
images_picker: ^0.0.3
intl: ^0.16.1
sticky_grouped_list: ^1.2.0

ImagesPicker.pick returns null

The example code returns a null.

  List<Media> res = await ImagesPicker.pick(
    count: 1,
    pickType: PickType.image,
  );

res variable is a null variable. How to fix this?

Error when running on iPhone 12 (iOS 14.5)

I get this error, when running the app on an iOS 14.5 Simulator:.

CocoaPods' output:
↳
      Preparing
    Analyzing dependencies
    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
    Finding Podfile changes
      A images_picker
      - Flutter
      - path_provider
    Fetching external sources
    -> Fetching podspec for `Flutter` from `Flutter`
    -> Fetching podspec for `images_picker` from `.symlinks/plugins/images_picker/ios`
    -> Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
    Resolving dependencies of `Podfile`
      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
    [!] CocoaPods could not find compatible versions for pod "images_picker":
      In Podfile:
        images_picker (from `.symlinks/plugins/images_picker/ios`)
    Specs satisfying the `images_picker (from `.symlinks/plugins/images_picker/ios`)` dependency were found, but they required a higher minimum deployment target.
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:328:in `raise_error_unless_state'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:310:in `block in unwind_for_conflict'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `tap'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:308:in `unwind_for_conflict'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:684:in `attempt_to_activate'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:254:in `process_topmost_state'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolution.rb:182:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/molinillo-0.6.6/lib/molinillo/resolver.rb:43:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/resolver.rb:94:in `resolve'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1074:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:1072:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/analyzer.rb:124:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:414:in `analyze'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:239:in `block in resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:238:in `resolve_dependencies'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:160:in `install!'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'
Error running pod install
Error launching application on iPhone 12.
Exited (sigterm)

Cropping not working on IOS

cropping works on android but does not work on iOS why's that even when I have

List res = await ImagesPicker.pick(
cropOpt: CropOption(),
pickType: PickType.image,
maxSize: 500,
quality: 0.8,
);

Add maxTime to pick method

Environment

Flutter version: Any
Plugin version: Next
Android version: Any
iOS version: Any
Xcode version: Any
Device information: Any

Description

What you'd like to happen: Be able to limit displayed videos to only those that fulfil time requirements.

Alternatives you've considered: Using image_picker plugin instead, but it doesn't allow for selecting videos/images simultaneously

Value return null

When i try to pick type all.

List<Media> res = await ImagesPicker.pick(
      count: 5,
      pickType: PickType.all,
      quality: 0.8,
      maxSize: 500,
    );

when used from IOS, 'res' is return null

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.