We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0743a2d commit bb28072Copy full SHA for bb28072
lib/widgets/post_card.dart
@@ -75,10 +75,15 @@ class _PostCardState extends State<PostCard> {
75
.copyWith(right: 0),
76
child: Row(
77
children: [
78
- CircleAvatar(
79
- radius: 16,
80
- backgroundImage:
81
- CachedNetworkImageProvider(widget.snap['profImage']),
+ CachedNetworkImage(
+ imageUrl: widget.snap['profImage'],
+ imageBuilder: (context, imageProvider) => CircleAvatar(
+ radius: 16,
82
+ backgroundImage: imageProvider,
83
+ ),
84
+ placeholder: (context, url) => const Icon(Icons.image),
85
+ errorWidget: (context, url, error) =>
86
+ const Icon(Icons.error),
87
),
88
Expanded(
89
child: Padding(
0 commit comments