Skip to content

Commit

Permalink
fix: add error widget when 404 on CDN side
Browse files Browse the repository at this point in the history
  • Loading branch information
Sembauke committed Sep 5, 2024
1 parent 127d447 commit 9080c5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mobile-app/lib/ui/views/news/news-feed/news_feed_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,12 @@ class NewsFeedView extends StatelessWidget {
)
: CachedNetworkImage(
imageUrl: tutorial.profileImage as String,
errorWidget: (context, url, error) => Image.asset(
'assets/images/placeholder-profile-img.png',
width: 45,
height: 45,
fit: BoxFit.cover,
),
imageBuilder: (context, imageProvider) => Container(
decoration: BoxDecoration(
image: DecorationImage(
Expand Down

0 comments on commit 9080c5e

Please sign in to comment.