AI Agent Component Spec
AI Agent Component Spec
| Field | Value |
|---|---|
| Package | cometchat_chat_uikit |
| Framework | Flutter |
| Components | CometChatConversations, CometChatCallLogs, CometChatUsers, CometChatGroups, CometChatMessageHeader, CometChatMessageList, CometChatMessageComposer |
| Layout | Bottom navigation tabs (Chats, Calls, Users, Groups) + message view |
| Prerequisite | Complete Getting Started Steps 1–4 first |
| Pattern | Full-featured messaging app with multiple sections |

What You’re Building
Three sections working together:- Bottom navigation — switches between Chats, Calls, Users, and Groups
- Page view — renders the list for the active tab
- Message view — header + messages + composer for the selected item
Step 1 — Create the Tabs Screen
The tabs screen usesBottomNavigationBar and PageView to create a tabbed interface.
lib/tabs_screen.dart
PageViewenables swipeable pages for each tab.BottomNavigationBarprovides quick access to different sections.- Each list component navigates to
MessagesScreenon item tap.
Step 2 — Create the Messages Screen
Same as the Conversation + Message guide:lib/messages_screen.dart
Step 3 — Run the App
Tab Descriptions
| Tab | Component | Purpose |
|---|---|---|
| Chats | CometChatConversations | Recent conversations with unread counts |
| Calls | CometChatCallLogs | Call history (audio/video) |
| Users | CometChatUsers | Browse and search all users |
| Groups | CometChatGroups | Browse and join groups |