diff --git a/lib/src/message_widget.dart b/lib/src/message_widget.dart index d0802488..18a8cfdd 100644 --- a/lib/src/message_widget.dart +++ b/lib/src/message_widget.dart @@ -301,6 +301,21 @@ class _MessageWidgetState extends State attachmentWidget = _buildVideo(attachment); } else if (attachment.type == 'image' || attachment.type == 'giphy') { attachmentWidget = _buildImage(attachment); + } else if (attachment.type == 'file') { + attachmentWidget = Material( + child: InkWell( + onTap: () { + _launchURL(attachment.assetUrl); + }, + child: Container( + width: 100, + height: 100, + child: Center( + child: Icon(Icons.attach_file), + ), + ), + ), + ); } if (attachmentWidget != null) {