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), ); }