chore: replace image error icon with empty box (#2307)

This commit is contained in:
ggurdin 2025-04-01 15:18:42 -04:00 committed by GitHub
parent 96197138ba
commit 6b75c61514
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 15 deletions

View file

@ -98,10 +98,7 @@ class ActivitySuggestionCard extends StatelessWidget {
child: CircularProgressIndicator(),
),
errorWidget: (context, url, error) =>
Icon(
Icons.error,
color: theme.colorScheme.error,
),
const SizedBox(),
)
: null,
),

View file

@ -285,13 +285,8 @@ class ActivitySuggestionCarouselState
child: activity.imageURL != null
? CachedNetworkImage(
imageUrl: activity.imageURL!,
errorWidget: (context, url, error) {
return CircleAvatar(
backgroundColor:
theme.colorScheme.secondary,
radius: 12.0,
);
},
errorWidget: (context, url, error) =>
const SizedBox(),
progressIndicatorBuilder:
(context, url, progress) {
return CircularProgressIndicator(

View file

@ -267,10 +267,8 @@ class ActivitySuggestionDialogState extends State<ActivitySuggestionDialog> {
placeholder: (context, url) => const Center(
child: CircularProgressIndicator(),
),
errorWidget: (context, url, error) => Icon(
Icons.error,
color: theme.colorScheme.error,
),
errorWidget: (context, url, error) =>
const SizedBox(),
)
: null,
),