hotfix: giphy

This commit is contained in:
Deven Joshi
2020-11-26 18:35:20 +05:30
parent f409845818
commit 8922ab6241
+2 -1
View File
@@ -78,7 +78,8 @@ class _FullScreenMediaState extends State<FullScreenMedia>
}); });
}, },
itemBuilder: (context, position) { itemBuilder: (context, position) {
if (widget.mediaAttachments[position].type == 'image') { print(widget.mediaAttachments[position].type);
if (widget.mediaAttachments[position].type == 'image' || widget.mediaAttachments[position].type == 'giphy') {
return PhotoView( return PhotoView(
imageProvider: CachedNetworkImageProvider( imageProvider: CachedNetworkImageProvider(
widget.mediaAttachments[position].imageUrl ?? widget.mediaAttachments[position].imageUrl ??