Я использую 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 Domain=com.apple.accounts Code=7 «(null)»»
[PAAccessLogger] Не удалось зарегистрировать доступ с ошибкой: access=
метод доступа: идентификатор: D4D1111-F111-4798- 1111-F1911111A9E0 вид: intervalEvent timestampAdjustment: 0 VisibilityState: 0 assetsIdentifierCount: 0 tccService: kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 «подключение к службе с идентификатором pid 226 с именем com.apple.privacyaccountingd» UserInfo={NSDebugDescription=подключение к службе с идентификатором pid 226 с именем com.apple.privacyaccountingd
Есть какие-нибудь решения? Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/786 ... icker-on-f