Skip to content

Commit

Permalink
fix permission android by request type (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
juarezfranco authored Sep 20, 2024
1 parent 747f642 commit 1b0ef5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/src/assets_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,12 @@ class InstaAssetPicker {
return AssetPicker.pickAssetsWithDelegate(
context,
delegate: builder,
permissionRequestOption: PermissionRequestOption(
androidPermission: AndroidPermission(
type: requestType,
mediaLocation: false,
),
),
useRootNavigator: useRootNavigator,
pageRouteBuilder: pageRouteBuilder,
);
Expand Down

0 comments on commit 1b0ef5c

Please sign in to comment.