Skip to main content
The One-to-One Chat feature provides a streamlined direct messaging interface, ideal for support chats, dating apps, and private messaging platforms.

Step 1: Render the Message View

Fetch the target user and display the messaging screen. V6 uses the same CometChatUIKit initialization but with BLoC-powered widgets.
main.dart

Full Example: main.dart

Step 2: Render the Messages Component

Compose the messaging view using:

Step 3: Run the App

This launches the app with the one-to-one chat interface featuring the message header, list, and composer.

Key V6 Differences

AspectV5V6
Composite widgetCometChatMessages wraps header + list + composerNo composite — compose individually
State managementGetX controllersBLoC pattern (MessageListBloc, MessageComposerBloc)
ExtensionsCometChatUIKitChatExtensions.getDefaultExtensions()Extensions handled via MessageTemplateUtils
Rich textNot availableBuilt-in rich text formatting and code blocks

Next Steps