flutter_chat_ui icon indicating copy to clipboard operation
flutter_chat_ui copied to clipboard

Custom actions in chat

Open alan2030 opened this issue 2 years ago • 7 comments

Hi! I was wondering whether this library supports chat actions? For example one user makes an offer and another user is prompted with "Accept" or "Decline" flat buttons in chat. Something similar to zendesk's bot navigation feature.

alan2030 avatar Sep 16 '22 07:09 alan2030

What about customBottomWidget? Probably you can do something with this ;)

From the code:

  /// Allows you to replace the default Input widget e.g. if you want to create
  /// a channel view.
  final Widget? customBottomWidget;

henry2man avatar Sep 19 '22 07:09 henry2man

customBottomWidget is something appearing instead of the Input, like said in the documentation comment, for the channel view for example, where you can't reply. Original question I think is about buttons below messages? People actually achieved that using bubbleBuilder in #301, but there is no "official" way. Second time seeing this though, maybe should be added natively.

demchenkoalex avatar Oct 02 '22 22:10 demchenkoalex

I've used this to create some similar (predefined answer buttons for a support chat).

I've achieved this by adding a Column with custom actions in one row and next the input box, which is logically also needed.

But it could be great (and probably easy) to have something native.

henry2man avatar Oct 02 '22 22:10 henry2man

so you meant buttons on top of an input in the end? ok. This is first time it was asked then :)

demchenkoalex avatar Oct 02 '22 23:10 demchenkoalex

customBottomWidget is something appearing instead of the Input, like said in the documentation comment, for the channel view for example, where you can't reply. Original question I think is about buttons below messages? People actually achieved that using bubbleBuilder in #301, but there is no "official" way. Second time seeing this though, maybe should be added natively.

Oh yes, thats what I meant, but @henry2man option also sounds good.

alan2030 avatar Oct 04 '22 01:10 alan2030

Any updates on this? What's the current way of adding something like custom buttons bellow a message?

We need custom answer buttons in our chat app, I can imagine this is a common requirement across chat bot apps.

k00na avatar Sep 19 '23 14:09 k00na

@k00na This library became hard to maintain, so I am working on a complete re-design that will be more performant and customisable, that's why no updates. I will make sure to include this in the new requirements list.

demchenkoalex avatar Oct 23 '23 07:10 demchenkoalex