flutter_chatview icon indicating copy to clipboard operation
flutter_chatview copied to clipboard

Support for attachments in a message.

Open Gaurav-CareMonitor opened this issue 7 months ago • 1 comments

Feature Request: Attachments Inside a Message

Summary

Currently, messages in chatview support basic text and media types individually, but there's no native support to include attachments (like images, files, or documents) embedded within a message block.

Motivation

Supporting attachments inside a single message would:

  • Improve the UX by allowing users to send contextual media alongside text.
  • Align the chat UI experience with modern messaging platforms like WhatsApp, Telegram, and Slack.
  • Reduce the need to split content into multiple message bubbles.

Example Use Case

A message could look like:

Hey, here's the report you asked for:
[report.pdf]

Desired Behavior

  • A single message bubble can contain both:
    • Text
    • One or more attachments (images, files, audio)
  • Optional: tap or long-press support for downloading/viewing attachments

Suggestions

  • Extend the Message model to support an attachments array.
  • Render attachments below the text in the same bubble.
  • Provide default renderers for image, audio, and document types, with customization options.

Let me know if this feature is already under consideration.

Gaurav-CareMonitor avatar Jun 25 '25 04:06 Gaurav-CareMonitor