chatify_image_message 0.0.3 copy "chatify_image_message: ^0.0.3" to clipboard
chatify_image_message: ^0.0.3 copied to clipboard

Chatify's image message implementation.

Chatify Image Message #

Image message provider for Chatify. Defines ImageMessage content and an ImageMessageProvider that renders images and provides a composer action to pick images and upload them using your configured AttachmentUploader.

Installation #

flutter pub add chatify_image_message

Usage #

Register the provider when initializing Chatify:

import 'package:chatify/chatify.dart';
import 'package:chatify_image_message/chatify_image_message.dart';

await Chatify.init(
  currentUser: currentUser,
  chatRepo: chatRepo,
  messageRepoFactory: (chat) => messageRepoFor(chat),
  uploaderFactory: (attachment) => uploaderFor(attachment),
  messageProviders: [
    ImageMessageProvider(),
  ],
);

The provider adds a composer action labelled “Image” that returns MediaComposerResult items with thumbnail, dimensions, and bytes. Chatify uploads using your AttachmentUploader, then calls MessageRepo.add(...) with the final URL.

API #

  • ImageMessage extends MessageContent with: thumbnail (bytes), width, height
  • ImageMessageProvider extends MediaMessageProvider<ImageMessage> and exposes a composer action
  • ImageMessageWidget displays image with upload/download progress, cancel/retry, and full-screen preview
0
likes
120
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

Chatify's image message implementation.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

blur, chatify, flutter, flutter_image_compress, iconsax, image_picker, uuid, zoom_widget

More

Packages that depend on chatify_image_message