How can I get images without accessing to album?
Closed this issue · 3 comments
tungakanui commented
I just wanna retrieve images to custom images picker like Messenger. Pls help
mamelishah commented
Did you found a solution? I used the "listItem" function to receive all the images, but it's slow on my iphone device.
SergeShkurko commented
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
Firelands128 commented
@SergeShkurko gave the right answer.