Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 11 Image and Video not in sequence (created by time). #29

Open
sahhilll opened this issue Jun 2, 2021 · 0 comments
Open

Android 11 Image and Video not in sequence (created by time). #29

sahhilll opened this issue Jun 2, 2021 · 0 comments

Comments

@sahhilll
Copy link

sahhilll commented Jun 2, 2021

Images and videos are in random sequence in album view and collection view in Android 10 and Android 11.

I tried sorting using:

List<MediaPage> pages = [];

      pages.add(
        await widget.collection.getMedias(
          mediaType: widget.mediaType,
          take: 50,
        ),
      );

pages.first.items..sort((x, y) => x.creationDate.compareTo(y.creationDate)); 

but it didn't work

On android less than 10 it is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant