Description
Currently, flutter_chatview supports replying to messages using the ReplyMessage model. However, many modern chat applications like WhatsApp, Telegram, and Slack support editing a previously sent message. It would be very helpful to have native support for message editing within this library.
Proposed Solution:
Introduce an isEdit flag to the ReplyMessage class (already done in local forks).
Modify SendMessageWidget to display the original message content when in edit mode.
Add an onEditTap callback to messages, similar to onReplyTap.
Allow users to detect if a message is being edited and update it in the message list instead of adding a new message.
Add UI state management for switching between "sending" and "editing" modes in the input field.
Benefits:
More intuitive and powerful chat experience.
Brings the package closer to feature parity with popular chat apps.
Allows developers to offer in-place correction of messages.
Optional Enhancements:
Display a small label (e.g., “edited”) next to messages that have been changed.
Support Firestore/Firebase update flow for edited messages.
Thank you for maintaining this great package. This feature would greatly improve usability for many developers using it in real-world apps.