You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can this package along with saf_util be used to get access to a directory (using saf_util's openDirectory ig), then get all the images in that folder (can be hundreds or thousands), sort them according to last modified attribute (latest first) and then show them to the user using the Image.file widget. Thing is, the Image.file widget is unable to read from the actual file, despite opening the directory containing the file using saf_util. How can I tackle this in an efficient manner?
The text was updated successfully, but these errors were encountered:
saf_util has a saveThumbnailToFile func to save thumbnail to a local file.
We have a similar app doing the exact same thing. To do everything in an efficient manner, caching is very important. First, list folder contents via saf_util. list and cache the results. Then we can do any sorting quickly on the cached list.
To render thumbnails efficiently, use Flutter's ListView.builder to render the list and load thumbnail in ListView.builder.itemBuilder with saf_util.saveThumbnailToFile. Do cache the thumbnail as well, so ListVIew can re-render thumbnails quickly during scrolling.
How can this package along with
saf_util
be used to get access to a directory (usingsaf_util
'sopenDirectory
ig), then get all the images in that folder (can be hundreds or thousands), sort them according to last modified attribute (latest first) and then show them to the user using theImage.file
widget. Thing is, theImage.file
widget is unable to read from the actual file, despite opening the directory containing the file usingsaf_util
. How can I tackle this in an efficient manner?The text was updated successfully, but these errors were encountered: