From 11d2e40e34ba21c5373eaeff7ce6f74e2cf2a75b Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Thu, 16 Apr 2026 22:50:58 +0200 Subject: [PATCH] fix: downsample offline hero art and clear logo --- lib/screens/media_detail_screen.dart | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/screens/media_detail_screen.dart b/lib/screens/media_detail_screen.dart index f6217560..9daffe4f 100644 --- a/lib/screens/media_detail_screen.dart +++ b/lib/screens/media_detail_screen.dart @@ -2407,10 +2407,13 @@ class _MediaDetailScreenState extends State heroArtPath, ); if (localPath != null && File(localPath).existsSync()) { - return Image.file( - File(localPath), + return PlexOptimizedImage( + client: null, + imagePath: null, + localFilePath: localPath, fit: BoxFit.cover, - errorBuilder: (context, error, stackTrace) => const PlaceholderContainer(), + imageType: ImageType.art, + errorWidget: (context, url, error) => const PlaceholderContainer(), ); } // Offline but no local file - show placeholder @@ -2492,11 +2495,14 @@ class _MediaDetailScreenState extends State metadata.clearLogo, ); if (localPath != null && File(localPath).existsSync()) { - return Image.file( - File(localPath), + return PlexOptimizedImage( + client: null, + imagePath: null, + localFilePath: localPath, fit: BoxFit.contain, alignment: Alignment.centerLeft, - errorBuilder: (context, error, stackTrace) => + imageType: ImageType.logo, + errorWidget: (context, url, error) => _buildTitleText(context, metadata.displayTitle), ); }