Firelands128/photo_gallery

How can I get images without accessing to album?

Closed this issue · 3 comments

I just wanna retrieve images to custom images picker like Messenger. Pls help

Did you found a solution? I used the "listItem" function to receive all the images, but it's slow on my iphone device.

I use first fetched album (all images)

    final imageAlbums = await PhotoGallery.listAlbums(
      mediumType: MediumType.image,
    );
    if (imageAlbums.isEmpty) {
      return;
    }
    final album = imageAlbums.first;
    final mediaPage = await album.listMedia(skip: 0, take: 100);
    // mediaPage.items

@SergeShkurko gave the right answer.