mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(mobile): caching thumbnails to disk (#21275)
This commit is contained in:
parent
19c53609e1
commit
e67265cef2
3 changed files with 51 additions and 26 deletions
|
|
@ -94,7 +94,7 @@ class _ThumbnailState extends State<Thumbnail> with SingleTickerProviderStateMix
|
|||
imageInfo.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
_fadeController.value = 1.0;
|
||||
setState(() {
|
||||
_providerImage = imageInfo.image;
|
||||
});
|
||||
|
|
@ -115,7 +115,7 @@ class _ThumbnailState extends State<Thumbnail> with SingleTickerProviderStateMix
|
|||
final imageStream = _imageStream = imageProvider.resolve(ImageConfiguration.empty);
|
||||
final imageStreamListener = _imageStreamListener = ImageStreamListener(
|
||||
(ImageInfo imageInfo, bool synchronousCall) {
|
||||
_stopListeningToStream();
|
||||
_stopListeningToThumbhashStream();
|
||||
if (!mounted) {
|
||||
imageInfo.dispose();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue