-
Notifications
You must be signed in to change notification settings - Fork 846
Support for attachments inside a message #826
Copy link
Copy link
Open
Description
Feature Request: Attachments Inside a Message
Summary
Currently, messages in flutter_chat_ui 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels