mirror of
https://github.com/ente-io/ente.git
synced 2025-07-01 13:13:35 +00:00
13 lines
337 B
Dart
13 lines
337 B
Dart
import "package:photo_manager/photo_manager.dart";
|
|
|
|
Future<PermissionState> requestPhotoMangerPermissions() {
|
|
return PhotoManager.requestPermissionExtend(
|
|
requestOption: const PermissionRequestOption(
|
|
androidPermission: AndroidPermission(
|
|
type: RequestType.common,
|
|
mediaLocation: true,
|
|
),
|
|
),
|
|
);
|
|
}
|