2

I am using photo_manager plugin, but I am stuck on how to filter only the following files

images png , jpg

videos mp4

they don't mention on their docs of how to implement it

I have the following code but I can't find the method for my need

List<AssetPathEntity> albums = await 

PhotoManager.getAssetPathList(onlyAll: true,filterOption: FilterOptionGroup(???? );    

List<AssetEntity> photos = await albums[0].getAssetListPaged(  page: 0, size: 50, );

does it possible ?

Ken White
  • 123,280
  • 14
  • 225
  • 444
Mohammed Hamdan
  • 1,006
  • 5
  • 23

0 Answers0