cleanup comments
This commit is contained in:
@@ -255,33 +255,12 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
if (attachmentBuilder == null) {
|
if (attachmentBuilder == null) {
|
||||||
return SizedBox();
|
return SizedBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
attachmentWidget = attachmentBuilder(
|
attachmentWidget = attachmentBuilder(
|
||||||
context,
|
context,
|
||||||
widget.message,
|
widget.message,
|
||||||
attachment,
|
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) {
|
if (attachmentWidget != null) {
|
||||||
return _buildAttachment(
|
return _buildAttachment(
|
||||||
|
|||||||
Reference in New Issue
Block a user