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: ADD package:cometchat_calls_uikit/cometchat_calls_uikit.dart as a SECOND import — the calls barrel re-exports shared + SDK only and does NOT re-export cometchat_chat_uikit. Chat widgets like CometChatConversations, CometChatMessageList, CometChatMessageComposer are 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 ThemeExtension with merge() pattern

Rule: INIT_FIRST

CometChatUIKit.init() must complete before any login, component usage, or SDK call.

Installs
5
GitHub Stars
47
First Seen
May 7, 2026
cometchat-flutter-v5-core — cometchat/cometchat-skills