Firelands128 / photo_gallery

A Flutter plugin that retrieves images and videos from mobile native gallery.
BSD 3-Clause "New" or "Revised" License
68 stars 62 forks source link

How to get both image & video types in listAlbums & Sorting in Pagination #40

Closed rikai-trongpq closed 1 year ago

rikai-trongpq commented 2 years ago

I use PhotoGallery.listAlbums and mediumType prop required a object, not a List. I expected result like that:

PhotoGallery.listAlbums(
        mediumType: [MediumType.video, MediumType.image],
      );

not

PhotoGallery.listAlbums(
        mediumType: MediumType.image, //or MediumType.video
      );

Because I wanna get all types of album. And how to sorting list media after I get a new pagination? Sorry my English is not good. I hope you understand.

rikai-trongpq commented 2 years ago

@Firelands128 Please help me..

fn-19 commented 2 years ago

I have the same problem Is your problem solved?

Firelands128 commented 1 year ago

Support this feature by making "mediumType" to be optional to be able to allow fetch both types of media after version 2.0.0.