Skip to content

Releases: fluttercandies/flutter_photo_manager

v3.8.3

06 Dec 09:58
7716cda

Choose a tag to compare

What's Changed

Fixes

  • Fix all media assets being returned when filterOption is not specified instead of respecting the requested type.

Full Changelog: v3.8.2...v3.8.3

v3.8.2

27 Nov 10:15
3726d4c

Choose a tag to compare

What's Changed

Fixes

  • Fix presentLimited type error.

Full Changelog: v3.8.1...v3.8.2

v3.8.1

27 Nov 00:38
2854496

Choose a tag to compare

What's Changed

Fixes

  • Fix SQL syntax error on Android when querying assets with pagination.

Full Changelog: v3.8.0...v3.8.1

v3.8.0

21 Nov 14:23
72e1b34

Choose a tag to compare

What's Changed

Features

  • Add Swift Package Manager support for iOS and macOS.
  • Add cancelToken parameter to AssetEntity.loadFile.
  • Add cancelAllRequest method to PhotoManager.
  • The AssetEntity.getFile and AssetEntity.getOriginBytes methods are public.
  • Add relativePathAsync getter to AssetPathEntity.
  • Add iOS 18 smart album subtypes support:
    • smartAlbumSpatial - For spatial/3D photos
    • smartAlbumProRes - For ProRes videos
    • smartAlbumScreenRecordings - For screen recordings
    • smartAlbumReceipts - For receipts in the Utilities section
    • smartAlbumHandwriting - For handwriting in the Utilities section
    • smartAlbumIllustrations - For illustrations in the Utilities section
    • smartAlbumQRCodes - For QR codes in the Utilities section
  • Add optional latitude, longitude, and creationDate parameters to saveImage, saveImageWithPath, and saveVideo methods.
    • On iOS: Sets location and creation date metadata for saved assets.
    • On Android Q+: Sets DATE_TAKEN field and location metadata for saved assets.
  • Add batch asset move functionality using createWriteRequest API for Android 11+.

Improvements

  • Remove implied FilterOptionGroups when querying paths and assets.
    This fixes assets finding when they were created in the future.
    Some edge cases regarding performance drops caused by the complicated sort queries might also get fixed.
  • Add PermissionState.isLimited.

Fixes

  • Fix type 'Null' is not a subtype of type 'Map<dynamic, dynamic>' error on Android when copying or moving assets fails.
    • Android now properly throws exceptions instead of returning null when copyAssetToGallery or moveAssetToGallery operations fail.
    • Dart side now handles null responses gracefully by throwing a PlatformException.
  • Fix PHImageManager crash on iOS by ensuring all PHImageManager/PHCachingImageManager methods are called on the main thread.
    This resolves race conditions and deadlocks when thumbnail operations are dispatched to QoS background queues.
  • Fix EXC_BAD_ACCESS crash caused by accessing deallocated memory in async blocks on iOS.
    • Fixed PHCachingImageManager methods: fetchThumb, exportAssetToFile, fetchFullSizeImageFile.
    • Fixed PHAssetResourceManager methods: fetchVideoResourceToFile, fetchOriginImageFile.
    • Fixed PHPhotoLibrary save methods: saveImage, saveImageWithPath, saveVideo, saveLivePhoto.
  • Fix AssetEntity.latlngAsync() returning zero location for videos on Android by using MediaMetadataRetriever to extract location data from video files.
  • Fix nullability mismatch for title parameter in saveVideo and saveImageWithPath methods.

New Contributors

Full Changelog: v3.7.1...v3.8.0

v3.7.1

22 May 17:32
e59d65a

Choose a tag to compare

What's Changed

Full Changelog: v3.7.0...v3.7.1

v3.7.0

21 May 00:51
aa91b91

Choose a tag to compare

What's Changed

Features

  • Add includeHiddenAssets option to PMFilter and FilterOptionGroup to include hidden assets in the results on iOS.

Fixes

  • Fix SizeConstraint not working for videos on Android. (#1275)
  • Fix inconsistent resizing behavior between iOS and Android in thumbnailDataWithSize. (#1271)

Improvements

  • No longer set sourceCompatibility and targetCompatibility for Android dynamically.
  • Make native library's version parsed from the yaml.

New Contributors

Full Changelog: v3.6.4...v3.7.0

v3.6.4

29 Jan 08:21
f25f8b8

Choose a tag to compare

What's Changed

  • 🐛 Fix potential nil class value when unwrapping caught exceptions on Darwin by @AlexV525 in #1249

Full Changelog: v3.6.3...v3.6.4

v3.6.3

21 Nov 11:32
73115af

Choose a tag to compare

What's Changed

Improvements

  • Optimize task priority handling on Darwin by automatically assigning QoS levels based on method types.
  • Optimize the default sort descriptors on Darwin.

Fixes

  • Fix the incorrect type of conversion with the Live-Photo's duration on Darwin.

Full Changelog: v3.6.2...v3.6.3

v3.6.2

10 Nov 08:47
a75a215

Choose a tag to compare

What's Changed

Fixes

  • Fix request permissions for images and videos on Android API 33+.

Full Changelog: v3.6.1...v3.6.2