cleanup comments

This commit is contained in:
Salvatore Giordano
2020-04-23 10:40:50 +02:00
parent ad9709a2c9
commit 16f727f9e2
+1 -22
View File
@@ -255,33 +255,12 @@ class _MessageWidgetState extends State<MessageWidget>
if (attachmentBuilder == null) {
return SizedBox();
}
attachmentWidget = attachmentBuilder(
context,
widget.message,
attachment,
);
// if (attachment.type == 'video') {
// attachmentWidget = VideoAttachment(
// attachment: attachment,
// messageTheme: _messageTheme,
// enableFullScreen: widget.showVideoFullScreen,
// );
// } else if (attachment.type == 'giphy') {
// attachmentWidget = GiphyAttachment(
// attachment: attachment,
// message: widget.message,
// messageTheme: _messageTheme,
// );
// } else if (attachment.type == 'image') {
// attachmentWidget = ImageAttachment(
// attachment: attachment,
// messageTheme: _messageTheme,
// );
// } else if (attachment.type == 'file') {
// attachmentWidget = FileAttachment(
// attachment: attachment,
// );
// }
if (attachmentWidget != null) {
return _buildAttachment(