cometchat/cometchat-uikit-flutter/cometchat-flutter-conversations
Claude Code and agent skill by cometchat/cometchat-uikit-flutter
- community
Checking that the SKILL.md file is still in the repository.
Use when implementing the conversations list with CometChat Flutter UIKit v6. Triggers on mentions of CometChatConversations, ConversationsBloc, ConversationsState, ConversationsLoaded, ConversationsServiceLocator, conversation list, recent chats, unread count, typing indicator in conversations, conversation item, last message, delete conversation, swipe actions, ConversationsRequestBuilder, onItemTap, subtitleView, trailingView, listItemView, or customizing the conversations screen. Also use when the user asks about showing a list of chats or recent conversations.
Install
npx vskill@latest install cometchat/cometchat-uikit-flutter/cometchat-flutter-conversationsSKILL.md
The same SKILL.md was published earlier as cometchat/cometchat-uikit-flutter/cometchat-flutter-conversations.
CometChat Flutter UIKit — Conversations
The CometChatConversations widget displays a list of recent conversations with real-time updates.
Basic Usage
Architecture
State Classes
ConversationsLoaded uses a monotonically increasing _version counter to guarantee unique emissions even when conversation IDs haven't changed (SDK's Conversation.== only compares conversationId).
Key Events
| Event | Purpose | |
|---|---|---|
LoadConversations({silent}) | Initial load. silent: true keeps existing list visible during refresh. | |
LoadMoreConversations | Pagination (scroll to bottom) | |
DeleteConversation(id) | Calls SDK to delete | |
RemoveConversation(id) | Remove from list without SDK call (e.g., after group kick) | |
SetActiveConversation(id) | Track which conversation is open | |
UpdateConversation(id, conversation) | Update a specific conversation's data | |
ResetUnreadCount(id) | Clear unread badge when user reads messages |
Real-Time Features
The BLoC automatically registers SDK listeners for:
- New messages → updates last message + moves conversation to top
- Typing indicators → per-conversation
ValueNotifier<List<TypingIndicator>> - User presence → online/offline status
- Read/delivery receipts → receipt icons
- Group events → member join/leave/kick/ban
- Connection state → reconnect triggers silent refresh
Typing Indicators (ValueNotifier Pattern)
Customization — View Slots
Custom ConversationsRequest
Gotchas
ConversationsLoadeduses a_versioncounter because SDK'sConversation.==only comparesconversationId. Without it, BLoC considers two lists with same IDs as equal even whenlastMessageorunreadMessageCountchanged, and skips the emission.- The BLoC uses
_conversationIndexMapfor O(1) lookups. If you maintain your own list outside the BLoC, keep a parallel Map for performance. silent: trueonLoadConversationskeeps the existing list visible during refresh — use this for background→foreground and reconnect scenarios, not initial load.- Typing indicators use
ValueNotifierper conversation, NOT BLoC state. This prevents the entire list from rebuilding when one person types.
Anti-Patterns
Checklist
- [ ]
onItemTapextractsUser/Groupfromconversation.conversationWith - [ ]
subscriptionTypeset in UIKitSettings (required for real-time updates) - [ ] Typing indicators use
ValueListenableBuilder, not BLoC state - [ ] Custom list items use
CometChatThemeHelperfor colors - [ ] Text formatters passed if using mentions or markdown in subtitle preview
- [ ]
deleteConversationOptionVisibilityset based on app requirements
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cometchat-flutter-conversations/SKILL.md
Popularity
- Repository stars
- 520
- Repository forks
- 42
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cometchat/cometchat-uikit-flutter/cometchat-flutter-conversations)