A Flutter plugin that provides images, videos, and audio abstraction management APIs without interface integration, available on Android, iOS, macOS and OpenHarmony.
In my use case I need to filter images by their aspect ratio (width / height) and only display images that satisfy a specific
ratio constraint (width / height = 2).
I can, of course, apply this filtering on the dart side, after getting all images but this messes with the pagination and seems wasteful.
Is there a way to achieve this with the existing filtering options and if not, is there a way to implement this feature?
This might be discussed before. AFAIK the MediaStore doesn't support such filter options or predication, so we didn't figure out a proper way to implement this feature.
Expect
In my use case I need to filter images by their aspect ratio (width / height) and only display images that satisfy a specific ratio constraint (
width / height = 2
).I can, of course, apply this filtering on the dart side, after getting all images but this messes with the pagination and seems wasteful.
Is there a way to achieve this with the existing filtering options and if not, is there a way to implement this feature?