Closed SvenSchoene closed 5 years ago
Pagination is a reasonable requirement, but I may not have that much time to finish it soon.
That is fully understandable.
I have sent you an email to the address in your Github profile. Let me know if that's something you're willing to talk about. If not: Again, I fully understand. π
The feature has merged in #94 , but for some other reason, I will update it to the pub within a few days.
Is your feature request related to a problem? Please describe.
getAssetPathList()
to load.and
My assumption is that requesting too many assets at once is the issue here. I'm happy to be proved wrong and given ideas regarding alternative solutions, though. π
Describe the solution you'd like I'm currently working on a second paginated version of
getAssetPathList
.Ideally one can pass in both, the current page (e.g.
page=1
), as well as the number of items per page (e.g.per_page=40
). However, I'd also be happy with a fixed number ofper_page
at the moment. What's most important to me is that pagination is possible.Since the largest issues in our team currently are on iOS devices, that's the first thing I'm tackling -- and simply hope that there are good solutions for Android as well.
In fact, this is the lead I'm trying to follow here as it looks pretty promising: https://stackoverflow.com/questions/47936192/how-to-add-pagination-to-phasset-fetching-from-photos-framework
Let's see how this turns out.
Additional context Unfortunately I have never in my life touched Objective C and find the learning curve just for reading the syntax incredibly steep. Additionally, my Java-skills are also sorely lacking. If this was Dart, Go, PHP or Javascript, adding pagination would merely be routine work. However, this is a bit more involved for me.
One of the issues is that even if I manage to implement the pagination for
getGalleryIdList
, there is still other state in theImageScanner
-class that would have to be adjusted, specifically the logic sorroundingrefreshGallery
andrefreshGalleryDict
.I'm willing to fight my way through this, though, and see what comes up.
The reason I open this ticket is that I have two questions:
Other than this: thanks for this great library which is sorely needed on Flutter. This is the first library that makes scrolling through a large list of images a breeze. After lots of banging our heads against the wall this library is a life-saver. Thanks for the hard work and sharing it! π