AI Agent Component Spec
AI Agent Component Spec
| Field | Value |
|---|---|
| Package | cometchat_chat_uikit |
| Key components | CometchatUserInfo, CometChatMessageList, PageManager |
| Init | CometChatUIKit.init(uiKitSettings) then CometChatUIKit.login(uid) |
| Entry point | Group member tap → CometchatUserInfo → “Message” action |
| Sample app | GitHub |
| Related | All Guides |
Components
| Component / Class | Role |
|---|---|
CometChatMessageList | Displays group messages and user avatars |
CometchatUserInfo | Shows user details and actions (e.g., call, message) |
CometChatUserInfoController | Manages user info state and actions |
PageManager | Handles navigation to the private chat screen |
Integration Steps
1. Navigate to User Info
Open the user info screen when tapping on a group member’s profile or info icon. File: cometchat_group_info.dart2. Display User Profile with Actions
TheCometchatUserInfo widget displays the user’s profile with action tiles for voice call, video call, and messaging.
File: cometchat_user_info.dart
3. Start Private Chat
Navigate to the private chat screen usingPageManager when the user wants to message privately.
File: page_manager.dart
4. Handle Mentions Navigation
When a user taps on a mention in a message, navigate to that user’s profile or start a private chat. File: cometchat_thread.dartFeature Matrix
| Feature | Component / Method | File |
|---|---|---|
| User info screen | CometchatUserInfo | cometchat_user_info.dart |
| Voice/video call | initiateCallWorkflow() | cometchat_user_info_controller.dart |
| Navigate to chat | PageManager.navigateToMessages | page_manager.dart |
| Mention tap | CometChatMentionsFormatter | cometchat_thread.dart |
| Access from group | Group member list | cometchat_group_info.dart |