Closed Egemen-Arslandogan closed 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?
I have same problem with you bro..
Please help help ðŸ˜
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?
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)
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
);
New versions 2.2.1
& 2.3.0-dev.2
were deployed with the change. Please check it out :)
fluttercandies/flutter_wechat_assets_picker#285 ile ilgili .
limitedPermissionOverlayPredicate
Kullanabilmeniz 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 :)
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?