getImageMessageBubble method

  1. @override
Widget getImageMessageBubble(
  1. String? imageUrl,
  2. String? placeholderImage,
  3. String? caption,
  4. ImageBubbleStyle? style,
  5. MediaMessage message,
  6. dynamic onClick()?,
  7. BuildContext context,
  8. CometChatTheme theme,
)
override

override this to change view inside content view of message type MessageTypeConstants.image

Implementation

@override
Widget getImageMessageBubble(
    String? imageUrl,
    String? placeholderImage,
    String? caption,
    ImageBubbleStyle? style,
    MediaMessage message,
    Function()? onClick,
    BuildContext context,
    CometChatTheme theme) {
  String? thumbnailUrl = checkForThumbnail(message);
  return super.getImageMessageBubble(
      thumbnailUrl,
      placeholderImage,
      caption,
      style,
      message,
      () => openImageInFullScreenMode(imageUrl, theme, context),
      context,
      theme);
}