Friday, 24 January 2020

How to move a photo/video to an album with Flutter on mobile (iOS and Android)?

Using Flutter on mobile (iOS and Android), how can I move media to an album?

I tried to combine gallery_saver and photo_manager on iOS:

  1. I read a media AssetEntity from Recents
  2. Saved the AssetEntity file under an album with GallerySaver.saveImage. At this point Recents showed the same media twice, makes sense.
  3. Attempted to delete with PhotoManager.editor.deleteWithIds the original AssetEntity file, and it showed a native popup asking the user if it's ok to delete the media. Bad user experience...

Is there a way to change AssetEntity album, without creating a new file?



from How to move a photo/video to an album with Flutter on mobile (iOS and Android)?

No comments:

Post a Comment