diff --git a/mobile/lib/modules/memories/ui/memory_card.dart b/mobile/lib/modules/memories/ui/memory_card.dart index b5f6ab46e0..7c998e8f52 100644 --- a/mobile/lib/modules/memories/ui/memory_card.dart +++ b/mobile/lib/modules/memories/ui/memory_card.dart @@ -1,13 +1,11 @@ import 'dart:ui'; -import 'package:cached_network_image/cached_network_image.dart'; import 'package:flutter/material.dart'; import 'package:immich_mobile/extensions/build_context_extensions.dart'; import 'package:immich_mobile/modules/asset_viewer/views/video_viewer_page.dart'; import 'package:immich_mobile/shared/models/asset.dart'; import 'package:immich_mobile/shared/models/store.dart'; import 'package:immich_mobile/shared/ui/immich_image.dart'; -import 'package:immich_mobile/utils/image_url_builder.dart'; class MemoryCard extends StatelessWidget { final Asset asset; @@ -44,14 +42,9 @@ class MemoryCard extends StatelessWidget { child: Container( decoration: BoxDecoration( image: DecorationImage( - image: CachedNetworkImageProvider( - getThumbnailUrl( - asset, - ), - cacheKey: getThumbnailCacheKey( - asset, - ), - headers: {"x-immich-user-token": accessToken}, + image: ImmichImage.imageProvider( + asset: asset, + isThumbnail: true, ), fit: BoxFit.cover, ),