chore: replace image error icon with empty box (#2307)
This commit is contained in:
parent
96197138ba
commit
6b75c61514
3 changed files with 5 additions and 15 deletions
|
|
@ -98,10 +98,7 @@ class ActivitySuggestionCard extends StatelessWidget {
|
|||
child: CircularProgressIndicator(),
|
||||
),
|
||||
errorWidget: (context, url, error) =>
|
||||
Icon(
|
||||
Icons.error,
|
||||
color: theme.colorScheme.error,
|
||||
),
|
||||
const SizedBox(),
|
||||
)
|
||||
: null,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue