LeGoffMael / insta_assets_picker

An image (and videos) picker similar with Instagram, supports multi picking, crop and aspect ratio.
https://pub.dev/packages/insta_assets_picker
MIT License
79 stars 34 forks source link

Is there a way to skip the "Unable to access all assets on the device" #35

Closed Egemen-Arslandogan closed 7 months ago

Egemen-Arslandogan commented 7 months ago

onPermissionDenied method not working. I would like to remove the "Unable to access all assets on the device" screen and allow them to continue to the "Continue with limited access" screen automatically if they chose to only give limited access. How can i do that?

Theoarnan commented 7 months ago

onPermissionDenied method not working. I would like to remove the "Unable to access all assets on the device" screen and allow them to continue to the "Continue with limited access" screen automatically if they chose to only give limited access. How can i do that?

image I have same problem with you bro..

Please help help 😭

Egemen-Arslandogan commented 7 months ago

onPermissionDenied method not working. I would like to remove the "Unable to access all assets on the device" screen and allow them to continue to the "Continue with limited access" screen automatically if they chose to only give limited access. How can i do that?

image I have same problem with you bro..

Please help help 😭

My solution;

*Download the library manually from github and add it to the project main directory. (delete example dir)

 insta_assets_picker:
     path: 'insta-assets-picker'

*Open the lib/src/assets_picker.dart file from the library files you added to your project and remove the following method

ps = await _permissionCheck(); (x2)

LeGoffMael commented 7 months ago

Related to https://github.com/fluttercandies/flutter_wechat_assets_picker/issues/285. I will expose the limitedPermissionOverlayPredicate parameter so that you can use it.

InstaAssetPicker.pickAssets(
  context,
  ...
  limitedPermissionOverlayPredicate: (PermissionState state) => false, // here return whether to show the limited access screen or not based on the permission state
);
LeGoffMael commented 7 months ago

New versions 2.2.1 & 2.3.0-dev.2 were deployed with the change. Please check it out :)

Egemen-Arslandogan commented 7 months ago

fluttercandies/flutter_wechat_assets_picker#285 ile ilgili . limitedPermissionOverlayPredicateKullanabilmeniz için parametreyi açığa çıkaracağım .

InstaAssetPicker.pickAssets(
  context,
  ...
  limitedPermissionOverlayPredicate: (PermissionState state) => false, // here return whether to show the limited access screen or not based on the permission state
);

This is the feature I was looking for! Thanks a lot :)