Skip to content

Commit

Permalink
fix(mobile): Uses immich thumbnail for background of memory picture (i…
Browse files Browse the repository at this point in the history
…mmich-app#7254)

unused imports
  • Loading branch information
martyfuhry authored Feb 20, 2024
1 parent 578b71b commit a22bf99
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions mobile/lib/modules/memories/ui/memory_card.dart
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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,
),
Expand Down

0 comments on commit a22bf99

Please sign in to comment.