codifyiq_chat_attachments 1.0.0
codifyiq_chat_attachments: ^1.0.0 copied to clipboard
Image, file and video message bubbles for flutter_chat_ui that open the CodifyIQ image, PDF and video viewers.
1.0.0 #
- Initial release.
ChatAttachments— image, file, video and audio message builders forflutter_chat_ui. Hand them toBuilderswithapply, or one at a time. Share and Download in the viewers call back with the message they belong to, and HTTP headers can be set per message for private storage.- Sources can be network URLs,
blob:URLs on the web, and local paths orfile://URIs elsewhere, plus bundled assets (assets/...) anddata:URIs for images — the same asflutter_chat_ui's own bubbles. - Images open
codifyiq_image_viewerwith a Hero, paging through every image in the conversation (or only the one tapped, withChatImageGallery.message). - PDFs open
codifyiq_pdf_viewer'sPdfViewerScreen; other files callonOpenFile. - Videos open
codifyiq_video_viewer'sVideoViewerScreen, with an optional poster and duration on the bubble. - Thumbnails: an image with a thumbnail (
ChatAttachmentMetadata.thumbnailin its metadata, orimageThumbnail) loads only that in the chat, and the viewer shows it until the full image arrives. Without one, the full image is decoded no larger than the bubble, and opening it reuses the download. Network images are cached on disk through theCrossCachethatChatprovides, likeflutter_chat_ui's own image bubble. Videos read their poster and length from the metadata too. - Messages that are sending are dimmed with a progress ring that follows
updateUploadProgresson the chat controller, and messages that failed to send are marked. - Audio messages play in their bubble with
codifyiq_audio_message, showing their length before loading. Share oneaudioControlleracross the chat so one message plays at a time and keeps playing when its bubble scrolls out of view. - Bubbles take their colours, shape and text styles from
flutter_chat_ui'sChatTheme, and show the message's time and status below the picture or file, on a line of their own or beside the caption (showTime,showStatus,timeAndStatusPosition), likeflutter_chat_ui's own bubbles. openOnTap: falseleaves taps toChat'sonMessageTap, for selection or retrying failed messages;openImage,openPdfandopenVideoopen attachments yourself. Long presses and double taps reachChateither way.- Images show their
thumbhashas a blurred placeholder, take its rough shape when the message has no size until the image loads and gives its own, fade in, and showimageOverlaywhen the message hashasOverlay.imageErrorBuilderreplaces the broken-image icon. topWidgetadds a widget above any bubble, such as the author's name;fileIconpicks file icons;maxHeightandborderRadiussize and shape the bubbles;labelslocalises the text they show and announce.actionsadds your own entries to the viewers' menus, androuteBuildersets the route the viewers open in.ChatImageAttachment,ChatFileAttachment,ChatVideoAttachmentandChatAudioAttachment— the bubbles on their own, for custom builders.