AI Integration Quick Reference
AI Integration Quick Reference
CometChatMessageList and CometChatThreadedHeader components.
Overview
- Reply to specific messages to start focused sub-conversations
- View all replies grouped under the parent message
- Seamlessly switch back to the main conversation
Prerequisites
- A Flutter project with CometChat UIKit Flutter V6 installed
- Initialized CometChat credentials
Components
Integration Steps
Show the “Reply in Thread” Option
- Dart
Navigate to the Thread Screen
In V6, compose the thread screen using individual widgets:- Dart
Send a Threaded Message
- Dart
Thread Subscription
Available since v6.1.1. Users can subscribe to a thread to be notified about its replies, or unsubscribe to mute it. The feature is off by default — enable it withUIKitSettingsBuilder.enableThreadSubscription, and the message action menu and the threaded header gain a subscribe toggle — as does the thread screen’s CometChatMessageHeader when you pass it the thread’s parentMessage. See the Thread Subscription guide.
Customization Options
- Header Styling: Customize
CometChatThreadedHeaderappearance - Composer Placeholder: Change placeholder text based on thread context
- Empty State: Display “No replies yet” when thread is empty