feat(artist): shimmer skeleton for album and popular-track cover placeholders

Covers loaded as flat gray boxes while the image downloaded; the
album cards and popular list now shimmer like the rest of the
loading states.
This commit is contained in:
zarzet
2026-07-13 07:30:34 +07:00
parent fb7d101019
commit 8579f68554
+10 -6
View File
@@ -1537,10 +1537,12 @@ class _ArtistScreenState extends ConsumerState<ArtistScreen>
width: 48,
height: 48,
borderRadius: BorderRadius.circular(4),
placeholder: (context, url) => Container(
width: 48,
height: 48,
color: colorScheme.surfaceContainerHighest,
placeholder: (context, url) => ShimmerLoading(
child: Container(
width: 48,
height: 48,
color: colorScheme.surfaceContainerHighest,
),
),
errorWidget: (context, url, error) => Container(
width: 48,
@@ -1765,8 +1767,10 @@ class _ArtistScreenState extends ConsumerState<ArtistScreen>
fit: BoxFit.cover,
memCacheWidth: (tileSize * 2).round(),
memCacheHeight: (tileSize * 2).round(),
placeholder: (context, url) => Container(
color: colorScheme.surfaceContainerHighest,
placeholder: (context, url) => ShimmerLoading(
child: Container(
color: colorScheme.surfaceContainerHighest,
),
),
errorWidget: (context, url, error) => Container(
color: colorScheme.surfaceContainerHighest,