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

[How to use] Preload thumbnails #1078

Closed
dodatw opened this issue Jan 20, 2024 · 1 comment
Closed

[How to use] Preload thumbnails #1078

dodatw opened this issue Jan 20, 2024 · 1 comment

Comments

@dodatw
Copy link

dodatw commented Jan 20, 2024

Platforms

iOS

Description

Hi, we'd like to improve the scrolling experience of our app's photo picker, just like the native one.
We've added gaplessPlayback = true, it improve, but not enough.

On Native, it almost show thumbnail immediately and no show placeholder. On Photo_Manager, we need wait 300ms~1 sec.
If I use ScrollBar and drag bar fast, the thumbnail will generate slow and slow. It look like a task queue issue.

https://pub.dev/packages/photo_manager#preload-thumbnails
We found a chapter about PhotoCachingManager, but not detail now to use it, is it can improve my case?
How it work between PhotoCachingManager and thumbnailDataWithSize ?
Because it seem do different if I cache after scrolling ?

My code

No response

Try do it

No response

@AlexV525
Copy link
Member

AlexV525 commented Mar 3, 2024

You can easily add another cache layer between the plugin and your displays, obtain the bytes, and save them as a cache file in your app's cache.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants