getVideoMessageTemplate method
override this to alter template for messages of type MessageTypeConstants.video
Implementation
@override
CometChatMessageTemplate getVideoMessageTemplate(CometChatTheme theme) {
return CometChatMessageTemplate(
type: MessageTypeConstants.video,
category: MessageCategoryConstants.message,
contentView: (BaseMessage message, BuildContext context,
BubbleAlignment alignment,
{AdditionalConfigurations? additionalConfigurations}) {
if (message.deletedAt != null) {
return getDeleteMessageBubble(message, theme);
}
return CometChatUIKit.getDataSource().getVideoMessageContentView(
message as MediaMessage, context, alignment, theme);
},
options: CometChatUIKit.getDataSource().getMessageOptions,
bottomView: CometChatUIKit.getDataSource().getBottomView);
}