fix: avoid clear logo fallback shift

This commit is contained in:
edde746
2026-05-02 22:38:11 +02:00
parent 45770e1ad6
commit 8820c0e059
2 changed files with 2 additions and 33 deletions
+1 -20
View File
@@ -1571,26 +1571,7 @@ class _DiscoverScreenState extends State<DiscoverScreen>
fit: BoxFit.contain,
memCacheWidth: (400 * dpr).clamp(200, 800).round(),
alignment: isLargeScreen ? Alignment.bottomLeft : Alignment.bottomCenter,
placeholder: (context, url) {
final theme = Theme.of(context);
final colorScheme = theme.colorScheme;
return Align(
alignment: isLargeScreen ? Alignment.centerLeft : Alignment.center,
child: Text(
showName,
style: theme.textTheme.displaySmall?.copyWith(
color: colorScheme.onSurface.withValues(alpha: 0.3),
fontWeight: FontWeight.bold,
shadows: [
Shadow(color: colorScheme.surface.withValues(alpha: 0.8), blurRadius: 8),
],
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
textAlign: isLargeScreen ? TextAlign.left : TextAlign.center,
),
);
},
placeholder: (context, url) => const SizedBox.shrink(),
errorWidget: (context, url, error) {
// Fallback to text if logo fails to load
final theme = Theme.of(context);
+1 -13
View File
@@ -2486,19 +2486,7 @@ class _MediaDetailScreenState extends State<MediaDetailScreen>
fit: BoxFit.contain,
alignment: Alignment.centerLeft,
memCacheWidth: (400 * dpr).clamp(200, 800).round(),
placeholder: (context, url) => Align(
alignment: Alignment.centerLeft,
child: Text(
metadata.displayTitle,
style: Theme.of(context).textTheme.displaySmall?.copyWith(
color: Colors.white.withValues(alpha: 0.3),
fontWeight: FontWeight.bold,
shadows: [Shadow(color: Colors.black.withValues(alpha: 0.5), blurRadius: 8)],
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
placeholder: (context, url) => const SizedBox.shrink(),
errorWidget: (context, url, error) => _buildTitleText(context, metadata.displayTitle),
),
sigma: 10,