Skip to main content
The Conversation List + Message View layout provides a seamless two-panel chat interface, commonly seen in modern messaging apps like WhatsApp Web, Slack, and Microsoft Teams. This layout allows users to switch between conversations while keeping the active chat open, delivering a smooth, real-time messaging experience.

Step 1: Render the Conversation Component

The CometChatConversations widget displays all conversations related to the currently logged-in user. Follow the steps below to render this component:
main.dart

Full Example: main.dart

main.dart

Step 2: Render the Messages Component

To create a complete messaging view, include the following components in messages_screen.dart:
messages_screen.dart

Step 3: Run the App

Use the following command to run the app on a connected device or emulator:
This will launch the app and display the Conversation List. Tapping a conversation will navigate to the Message View.

Next Steps

Enhance the User Experience