Я использую image_picker с этим кодом:
Код: Выделить всё
final ImagePicker imagePicker = ImagePicker();
// Check for gallery permission
final hasPermission = await requestPhotosPermission();
if (!hasPermission) return false;
final photoResult = await imagePicker.pickImage(
source: ImageSource.gallery,
maxHeight: 1280,
maxWidth: 800,
requestFullMetadata: false);
Код: Выделить всё
NSPhotoLibraryAddUsageDescription
Access to the photo library is necessary.
NSPhotoLibraryUsageDescription
Access to the photo library is necessary.
Код: Выделить всё
**[core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""
[PAAccessLogger] Failed to log access with error: access=
accessor: identifier:D4D1111-F111-4798-1111-F1911111A9E0 kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 "connection to service with pid 226 named com.apple.privacyaccountingd" UserInfo={NSDebugDescription=connection to service with pid 226 named com.apple.privacyaccountingd}**
Подробнее здесь: https://stackoverflow.com/questions/786 ... icker-on-f