photo_view
photo_view copied to clipboard
How can I preload next image?
I make a on line gallery with photo_view, and implement loading builder.
My imageProvider can download image and cache to local.
I tried download image to cache early, but photo_view display loading widget before scroll over.
Can I preload next 2 image and previous 1 image ?
Like these code
PhotoViewGallery.build(
preloadNext: 2,
preloadPrevious: 1,
);
I make a on line gallery with photo_view, and implement loading builder.
My imageProvider can download image and cache to local.
I tried download image to cache early, but photo_view display loading widget before scroll over.
Can I preload next 2 image and previous 1 image ?
Like these code
PhotoViewGallery.build( preloadNext: 2, preloadPrevious: 1, );
check #457 xd
you can use precacheImage
, which is what I use in my app.