cometchat-flutter-v5-core
Installation
SKILL.md
CometChat Flutter UIKit v5 — Core Rules
Non-negotiable constraints for all CometChat UIKit v5 code. Violating these causes silent failures or crashes.
Key v5 Architecture Facts
- State management: GetX (GetBuilder, GetxController, Get.put, Get.find, Get.delete)
- Separate packages:
cometchat_chat_uikit+cometchat_calls_uikit+cometchat_uikit_shared - SDK:
cometchat_sdk ^4.1.2+cometchat_calls_sdk ^4.2.2 - Imports — two barrels. For chat-only projects:
package:cometchat_chat_uikit/cometchat_chat_uikit.dart. For projects that also need voice/video calling: ADDpackage:cometchat_calls_uikit/cometchat_calls_uikit.dartas a SECOND import — the calls barrel re-exports shared + SDK only and does NOT re-exportcometchat_chat_uikit. Chat widgets likeCometChatConversations,CometChatMessageList,CometChatMessageComposerare reachable only through the chat barrel. CometChatUIKit.login(uid)takes a String directly (not an object)- No ServiceLocator pattern — controllers are created via
Get.put()internally - Style classes use
ThemeExtensionwithmerge()pattern
Rule: INIT_FIRST
CometChatUIKit.init() must complete before any login, component usage, or SDK call.