use correct fallback for icons

This commit is contained in:
Henry Hiles 2026-06-04 20:49:14 -04:00
commit 561f6ecc84
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -62,8 +62,8 @@ class AvatarOrHash extends ConsumerWidget {
),
fit: .cover,
loadingBuilder: (_, child, loadingProgress) =>
loadingProgress == null ? child : box,
errorBuilder: (_, _, _) => box,
loadingProgress == null ? child : fallback ?? box,
errorBuilder: (_, _, _) => fallback ?? box,
),
),
),