app/modules/chat/chat_widgets library

Functions

addDateHeaderMessage(ChatMessageModel item) → String
cancelMediaUploadOrDownload(String messageId) → void
chatSpannedText(String text, String spannableText, TextStyle? style, bool isSentbyMe, {int? maxLines}) → Widget
checkTwoDigitsForDate(int date) → String
downloadingOrUploadingView(String messageType, int progress, bool isSentByMe) → dynamic
downloadMedia(BuildContext context, String messageId) → void
downloadView(int mediaDownloadStatus, int mediaFileSize, String messageType, bool isSentByMe) → Widget
getImageHolder(String mediaFileName, double size) → Widget
getImageOverlay(BuildContext context, ChatMessageModel chatMessage, {dynamic onAudio()?, dynamic onVideo()?}) → Widget
getLocationImage(LocationChatMessage? locationChatMessage, double width, double height, {bool isSelected = false}) → Widget
getMessageIndicator(String? messageStatus, bool isSender, String messageType, bool isRecalled, {bool showChatDeliveryIndicator = true}) → dynamic
getMonthForInt(int num) → String
getReplyImageHolder(BuildContext context, ChatMessageModel chatMessageModel, ReplyParentChatMessage? replyChatMessageModel, MediaChatMessage? mediaChatMessage, double size, bool isNotChatItem, LocationChatMessage? locationChatMessage) → dynamic
getReplyMessage(String messageType, String? messageTextContent, String? contactName, String? mediaFileName, MediaChatMessage? mediaChatMessage, bool isReplying, Color? color) → dynamic
getReplyTitle(bool isMessageSentByMe, String senderUserName) → dynamic
groupedDateMessage(int index, List<ChatMessageModel> chatList) → String?
iconCreation(String iconPath, String text, VoidCallback onTap) → Widget
imageFromBase64String(String base64String, BuildContext context, double? width, double? height) → Image
isDateChanged(int position, List<ChatMessageModel> mChatData) → bool
Checks the current header id with previous header id @param position Position of the current item @return boolean True if header changed, else false
setCaptionMessage(MediaChatMessage mediaMessage, ChatMessageModel chatMessage, BuildContext context, bool showChatDeliveryIndicator, {String search = Constants.emptyString}) → Widget
uploadMedia(String messageId) → void
uploadView(int mediaDownloadStatus, int mediaFileSize, String messageType, bool isSentByMe) → dynamic