Skip to main content
This guide walks you through creating a tab-based messaging UI using Flutter and CometChat V6 UIKit. The UI includes sections for Chats, Users, and Groups, allowing seamless navigation.

User Interface Preview

This layout consists of:
  1. Sidebar (Conversation List) — Displays recent conversations with active users and groups.
  2. Message View — Shows the selected chat with real-time messages.
  3. Message Input Box — Allows users to send messages seamlessly.

Step 1: Render the Tab Component

Set up initialization and the tab-based layout. In V6, all list widgets (CometChatConversations, CometChatUsers, CometChatGroups) are powered by BLoC.

Full Example: main.dart

Step 2: Render the Messages Component

Use the same MessagesScreen pattern from One-to-One Chat:

Step 3: Run the App

This launches the app with the tab-based chat experience. Navigate between Chats, Users, and Groups tabs and interact with the messaging features.

Next Steps