fix: Fixed emoticon padding, svg image

This commit is contained in:
Deven Joshi
2021-01-19 17:19:32 +05:30
parent 8a6e7a4f98
commit e2ae512754
2 changed files with 5 additions and 1 deletions
@@ -131,6 +131,10 @@ class _FileAttachmentState extends State<FileAttachment> {
);
break;
case FileAttachmentType.online:
if (widget.attachment.extraData['mime_type'] == 'svg') {
return getFileTypeImage(widget.attachment.extraData['other']);
}
return CachedNetworkImage(
imageUrl: widget.attachment.imageUrl ??
widget.attachment.assetUrl ??