flutter_chatview
flutter_chatview copied to clipboard
Support for attachments in a message.
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
Messagemodel to support anattachmentsarray. - 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.