@cometchat/skills 4.3.0 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/LICENSE +21 -0
  2. package/bin/install.js +27 -0
  3. package/package.json +14 -1
  4. package/skills/cometchat/SKILL.md +233 -69
  5. package/skills/cometchat/references/asking-questions.md +48 -0
  6. package/skills/cometchat-a11y/SKILL.md +3 -2
  7. package/skills/cometchat-android-v5/SKILL.md +2 -1
  8. package/skills/cometchat-android-v5-calls/SKILL.md +36 -22
  9. package/skills/cometchat-android-v5-calls/references/README.md +1 -1
  10. package/skills/cometchat-android-v5-calls/references/add-calls-to-existing-chat.md +7 -5
  11. package/skills/cometchat-android-v5-calls/references/audio-controls.md +4 -4
  12. package/skills/cometchat-android-v5-calls/references/call-layouts.md +33 -25
  13. package/skills/cometchat-android-v5-calls/references/call-session.md +2 -2
  14. package/skills/cometchat-android-v5-calls/references/custom-ui.md +5 -5
  15. package/skills/cometchat-android-v5-calls/references/event-listeners.md +2 -2
  16. package/skills/cometchat-android-v5-calls/references/idle-timeout.md +20 -14
  17. package/skills/cometchat-android-v5-calls/references/in-call-chat.md +1 -1
  18. package/skills/cometchat-android-v5-calls/references/migration-v4-to-v5.md +43 -27
  19. package/skills/cometchat-android-v5-calls/references/participant-management.md +3 -3
  20. package/skills/cometchat-android-v5-calls/references/raise-hand.md +25 -19
  21. package/skills/cometchat-android-v5-calls/references/recording.md +2 -2
  22. package/skills/cometchat-android-v5-calls/references/ringing-integration.md +1 -1
  23. package/skills/cometchat-android-v5-calls/references/screen-sharing.md +5 -9
  24. package/skills/cometchat-android-v5-calls/references/session-settings.md +3 -3
  25. package/skills/cometchat-android-v5-calls/references/setup.md +1 -1
  26. package/skills/cometchat-android-v5-calls/references/share-invite.md +9 -4
  27. package/skills/cometchat-android-v5-calls/references/video-controls.md +4 -4
  28. package/skills/cometchat-android-v5-calls/references/voip-calling.md +2 -2
  29. package/skills/cometchat-android-v5-components/SKILL.md +4 -3
  30. package/skills/cometchat-android-v5-core/SKILL.md +5 -3
  31. package/skills/cometchat-android-v5-customization/SKILL.md +171 -7
  32. package/skills/cometchat-android-v5-extensions/SKILL.md +7 -4
  33. package/skills/cometchat-android-v5-features/SKILL.md +5 -4
  34. package/skills/cometchat-android-v5-placement/SKILL.md +2 -1
  35. package/skills/cometchat-android-v5-production/SKILL.md +2 -1
  36. package/skills/cometchat-android-v5-push/SKILL.md +2 -3
  37. package/skills/cometchat-android-v5-testing/SKILL.md +2 -1
  38. package/skills/cometchat-android-v5-theming/SKILL.md +2 -1
  39. package/skills/cometchat-android-v5-troubleshooting/SKILL.md +3 -2
  40. package/skills/cometchat-android-v6/SKILL.md +2 -1
  41. package/skills/cometchat-android-v6-builder-settings/SKILL.md +11 -7
  42. package/skills/cometchat-android-v6-calls/SKILL.md +79 -18
  43. package/skills/cometchat-android-v6-calls/references/advanced-features.md +87 -0
  44. package/skills/cometchat-android-v6-calls/references/call-layouts.md +24 -15
  45. package/skills/cometchat-android-v6-calls/references/call-session.md +2 -2
  46. package/skills/cometchat-android-v6-calls/references/device-management.md +17 -16
  47. package/skills/cometchat-android-v6-calls/references/idle-timeout.md +7 -4
  48. package/skills/cometchat-android-v6-calls/references/in-call-chat.md +13 -8
  49. package/skills/cometchat-android-v6-calls/references/raise-hand.md +6 -4
  50. package/skills/cometchat-android-v6-compose-components/SKILL.md +52 -29
  51. package/skills/cometchat-android-v6-compose-customization/SKILL.md +156 -1
  52. package/skills/cometchat-android-v6-compose-placement/SKILL.md +129 -40
  53. package/skills/cometchat-android-v6-compose-theming/SKILL.md +27 -1
  54. package/skills/cometchat-android-v6-core/SKILL.md +208 -28
  55. package/skills/cometchat-android-v6-events/SKILL.md +4 -1
  56. package/skills/cometchat-android-v6-extensions/SKILL.md +2 -1
  57. package/skills/cometchat-android-v6-features/SKILL.md +26 -2
  58. package/skills/cometchat-android-v6-kotlin-components/SKILL.md +31 -1
  59. package/skills/cometchat-android-v6-kotlin-customization/SKILL.md +172 -1
  60. package/skills/cometchat-android-v6-kotlin-placement/SKILL.md +20 -5
  61. package/skills/cometchat-android-v6-kotlin-theming/SKILL.md +36 -5
  62. package/skills/cometchat-android-v6-migration/SKILL.md +44 -42
  63. package/skills/cometchat-android-v6-production/SKILL.md +6 -3
  64. package/skills/cometchat-android-v6-push/SKILL.md +43 -2
  65. package/skills/cometchat-android-v6-testing/SKILL.md +11 -8
  66. package/skills/cometchat-android-v6-troubleshooting/SKILL.md +26 -5
  67. package/skills/cometchat-angular-calls/SKILL.md +256 -389
  68. package/skills/cometchat-angular-calls/references/add-calls-to-existing-chat.md +3 -2
  69. package/skills/cometchat-angular-calls/references/call-layouts.md +29 -12
  70. package/skills/cometchat-angular-calls/references/call-session.md +2 -2
  71. package/skills/cometchat-angular-calls/references/custom-ui.md +18 -10
  72. package/skills/cometchat-angular-calls/references/device-management.md +53 -34
  73. package/skills/cometchat-angular-calls/references/group-calls.md +45 -24
  74. package/skills/cometchat-angular-calls/references/idle-timeout.md +31 -15
  75. package/skills/cometchat-angular-calls/references/ngzone-and-async-callbacks.md +7 -6
  76. package/skills/cometchat-angular-calls/references/raise-hand.md +9 -4
  77. package/skills/cometchat-angular-calls/references/recording-screen-share.md +32 -39
  78. package/skills/cometchat-angular-calls/references/ringing-integration.md +3 -1
  79. package/skills/cometchat-angular-calls/references/share-invite.md +11 -5
  80. package/skills/cometchat-angular-calls/references/virtual-background.md +29 -0
  81. package/skills/cometchat-angular-components/SKILL.md +149 -620
  82. package/skills/cometchat-angular-core/SKILL.md +232 -312
  83. package/skills/cometchat-angular-customization/SKILL.md +415 -223
  84. package/skills/cometchat-angular-features/SKILL.md +216 -334
  85. package/skills/cometchat-angular-patterns/SKILL.md +168 -359
  86. package/skills/cometchat-angular-placement/SKILL.md +189 -560
  87. package/skills/cometchat-angular-production/SKILL.md +241 -92
  88. package/skills/cometchat-angular-push/SKILL.md +280 -294
  89. package/skills/cometchat-angular-testing/SKILL.md +430 -158
  90. package/skills/cometchat-angular-theming/SKILL.md +190 -265
  91. package/skills/cometchat-angular-troubleshooting/SKILL.md +192 -157
  92. package/skills/cometchat-astro-patterns/SKILL.md +3 -2
  93. package/skills/cometchat-calls/SKILL.md +25 -19
  94. package/skills/cometchat-calls/references/use-case-broadcast.md +15 -10
  95. package/skills/cometchat-calls/references/use-case-marketplace.md +2 -3
  96. package/skills/cometchat-calls/references/use-case-support.md +3 -4
  97. package/skills/cometchat-calls/references/use-case-team.md +23 -12
  98. package/skills/cometchat-calls/references/use-case-telehealth.md +3 -4
  99. package/skills/cometchat-components/SKILL.md +163 -25
  100. package/skills/cometchat-core/SKILL.md +258 -20
  101. package/skills/cometchat-customization/SKILL.md +50 -25
  102. package/skills/cometchat-features/SKILL.md +314 -35
  103. package/skills/cometchat-flutter-v5/SKILL.md +10 -4
  104. package/skills/cometchat-flutter-v5-calls/SKILL.md +188 -158
  105. package/skills/cometchat-flutter-v5-calls/references/add-calls-to-existing-chat.md +48 -24
  106. package/skills/cometchat-flutter-v5-calls/references/call-layouts.md +20 -15
  107. package/skills/cometchat-flutter-v5-calls/references/call-session.md +100 -145
  108. package/skills/cometchat-flutter-v5-calls/references/device-management.md +12 -8
  109. package/skills/cometchat-flutter-v5-calls/references/group-calls.md +30 -36
  110. package/skills/cometchat-flutter-v5-calls/references/idle-timeout.md +15 -13
  111. package/skills/cometchat-flutter-v5-calls/references/in-call-chat.md +12 -9
  112. package/skills/cometchat-flutter-v5-calls/references/migration-v4-to-v5.md +115 -65
  113. package/skills/cometchat-flutter-v5-calls/references/raise-hand.md +41 -30
  114. package/skills/cometchat-flutter-v5-calls/references/ringing-integration.md +17 -14
  115. package/skills/cometchat-flutter-v5-calls/references/share-invite.md +8 -2
  116. package/skills/cometchat-flutter-v5-conversations/SKILL.md +2 -1
  117. package/skills/cometchat-flutter-v5-core/SKILL.md +5 -4
  118. package/skills/cometchat-flutter-v5-customization/SKILL.md +136 -5
  119. package/skills/cometchat-flutter-v5-events/SKILL.md +2 -1
  120. package/skills/cometchat-flutter-v5-messages/SKILL.md +2 -1
  121. package/skills/cometchat-flutter-v5-production/SKILL.md +15 -6
  122. package/skills/cometchat-flutter-v5-push/SKILL.md +2 -1
  123. package/skills/cometchat-flutter-v5-testing/SKILL.md +17 -6
  124. package/skills/cometchat-flutter-v5-theming/SKILL.md +2 -1
  125. package/skills/cometchat-flutter-v5-troubleshooting/SKILL.md +7 -6
  126. package/skills/cometchat-flutter-v5-users-groups/SKILL.md +3 -2
  127. package/skills/cometchat-flutter-v6/SKILL.md +17 -16
  128. package/skills/cometchat-flutter-v6-calls/SKILL.md +72 -57
  129. package/skills/cometchat-flutter-v6-calls/references/add-calls-to-existing-chat.md +5 -3
  130. package/skills/cometchat-flutter-v6-calls/references/advanced-features.md +89 -0
  131. package/skills/cometchat-flutter-v6-calls/references/call-layouts.md +15 -12
  132. package/skills/cometchat-flutter-v6-calls/references/call-session.md +2 -2
  133. package/skills/cometchat-flutter-v6-calls/references/device-management.md +9 -3
  134. package/skills/cometchat-flutter-v6-calls/references/group-calls.md +10 -10
  135. package/skills/cometchat-flutter-v6-calls/references/idle-timeout.md +15 -7
  136. package/skills/cometchat-flutter-v6-calls/references/in-call-chat.md +6 -3
  137. package/skills/cometchat-flutter-v6-calls/references/raise-hand.md +23 -16
  138. package/skills/cometchat-flutter-v6-components/SKILL.md +32 -11
  139. package/skills/cometchat-flutter-v6-conversations/SKILL.md +39 -11
  140. package/skills/cometchat-flutter-v6-core/SKILL.md +182 -21
  141. package/skills/cometchat-flutter-v6-customization/SKILL.md +97 -25
  142. package/skills/cometchat-flutter-v6-events/SKILL.md +3 -2
  143. package/skills/cometchat-flutter-v6-features/SKILL.md +15 -6
  144. package/skills/cometchat-flutter-v6-messages/SKILL.md +111 -60
  145. package/skills/cometchat-flutter-v6-migration/SKILL.md +18 -25
  146. package/skills/cometchat-flutter-v6-placement/SKILL.md +79 -50
  147. package/skills/cometchat-flutter-v6-production/SKILL.md +13 -12
  148. package/skills/cometchat-flutter-v6-push/SKILL.md +41 -19
  149. package/skills/cometchat-flutter-v6-testing/SKILL.md +4 -4
  150. package/skills/cometchat-flutter-v6-theming/SKILL.md +38 -5
  151. package/skills/cometchat-flutter-v6-troubleshooting/SKILL.md +182 -17
  152. package/skills/cometchat-flutter-v6-users-groups/SKILL.md +12 -4
  153. package/skills/cometchat-i18n/SKILL.md +140 -79
  154. package/skills/cometchat-ios/SKILL.md +4 -2
  155. package/skills/cometchat-ios-calls/SKILL.md +225 -95
  156. package/skills/cometchat-ios-calls/references/add-calls-to-existing-chat.md +11 -9
  157. package/skills/cometchat-ios-calls/references/audio-modes-and-controls.md +45 -0
  158. package/skills/cometchat-ios-calls/references/avaudiosession-routing.md +6 -7
  159. package/skills/cometchat-ios-calls/references/call-layouts.md +31 -91
  160. package/skills/cometchat-ios-calls/references/call-session.md +51 -54
  161. package/skills/cometchat-ios-calls/references/callkit-and-pushkit.md +33 -29
  162. package/skills/cometchat-ios-calls/references/custom-ui.md +38 -38
  163. package/skills/cometchat-ios-calls/references/group-calls.md +33 -70
  164. package/skills/cometchat-ios-calls/references/idle-timeout.md +24 -25
  165. package/skills/cometchat-ios-calls/references/in-call-chat.md +19 -23
  166. package/skills/cometchat-ios-calls/references/migration-v4-to-v5.md +128 -70
  167. package/skills/cometchat-ios-calls/references/picture-in-picture.md +20 -20
  168. package/skills/cometchat-ios-calls/references/raise-hand.md +14 -227
  169. package/skills/cometchat-ios-calls/references/recording-screen-share.md +35 -122
  170. package/skills/cometchat-ios-calls/references/ringing-integration.md +17 -16
  171. package/skills/cometchat-ios-calls/references/share-invite.md +8 -12
  172. package/skills/cometchat-ios-calls/references/swiftui-uikit-hosting.md +4 -4
  173. package/skills/cometchat-ios-components/SKILL.md +200 -12
  174. package/skills/cometchat-ios-core/SKILL.md +173 -45
  175. package/skills/cometchat-ios-customization/SKILL.md +276 -110
  176. package/skills/cometchat-ios-features/SKILL.md +64 -36
  177. package/skills/cometchat-ios-placement/SKILL.md +15 -12
  178. package/skills/cometchat-ios-production/SKILL.md +12 -4
  179. package/skills/cometchat-ios-push/SKILL.md +53 -19
  180. package/skills/cometchat-ios-testing/SKILL.md +14 -9
  181. package/skills/cometchat-ios-theming/SKILL.md +39 -3
  182. package/skills/cometchat-ios-troubleshooting/SKILL.md +41 -21
  183. package/skills/cometchat-native-bare-patterns/SKILL.md +36 -19
  184. package/skills/cometchat-native-calls/SKILL.md +29 -17
  185. package/skills/cometchat-native-calls/references/add-calls-to-existing-chat.md +2 -2
  186. package/skills/cometchat-native-calls/references/call-layouts.md +15 -14
  187. package/skills/cometchat-native-calls/references/call-session.md +2 -2
  188. package/skills/cometchat-native-calls/references/custom-ui.md +12 -8
  189. package/skills/cometchat-native-calls/references/device-management.md +53 -30
  190. package/skills/cometchat-native-calls/references/group-calls.md +35 -30
  191. package/skills/cometchat-native-calls/references/idle-timeout.md +6 -6
  192. package/skills/cometchat-native-calls/references/in-call-chat.md +10 -8
  193. package/skills/cometchat-native-calls/references/migration-v4-to-v5.md +2 -2
  194. package/skills/cometchat-native-calls/references/raise-hand.md +15 -13
  195. package/skills/cometchat-native-calls/references/recording-screen-share.md +49 -170
  196. package/skills/cometchat-native-calls/references/share-invite.md +7 -5
  197. package/skills/cometchat-native-calls/references/voip-push-end-to-end.md +4 -2
  198. package/skills/cometchat-native-components/SKILL.md +84 -52
  199. package/skills/cometchat-native-core/SKILL.md +102 -33
  200. package/skills/cometchat-native-customization/SKILL.md +150 -28
  201. package/skills/cometchat-native-expo-patterns/SKILL.md +60 -29
  202. package/skills/cometchat-native-features/SKILL.md +24 -17
  203. package/skills/cometchat-native-placement/SKILL.md +19 -10
  204. package/skills/cometchat-native-production/SKILL.md +9 -3
  205. package/skills/cometchat-native-push/SKILL.md +2 -1
  206. package/skills/cometchat-native-testing/SKILL.md +1 -2
  207. package/skills/cometchat-native-theming/SKILL.md +54 -29
  208. package/skills/cometchat-native-troubleshooting/SKILL.md +11 -5
  209. package/skills/cometchat-nextjs-patterns/SKILL.md +22 -8
  210. package/skills/cometchat-placement/SKILL.md +42 -3
  211. package/skills/cometchat-production/SKILL.md +12 -5
  212. package/skills/cometchat-react-calls/SKILL.md +220 -10
  213. package/skills/cometchat-react-calls/references/add-calls-to-existing-chat.md +4 -3
  214. package/skills/cometchat-react-calls/references/call-layouts.md +5 -6
  215. package/skills/cometchat-react-calls/references/call-session.md +1 -1
  216. package/skills/cometchat-react-calls/references/custom-ui.md +61 -15
  217. package/skills/cometchat-react-calls/references/device-management.md +55 -51
  218. package/skills/cometchat-react-calls/references/group-calls.md +18 -23
  219. package/skills/cometchat-react-calls/references/idle-timeout.md +25 -12
  220. package/skills/cometchat-react-calls/references/in-call-chat.md +7 -7
  221. package/skills/cometchat-react-calls/references/migration-v4-to-v5.md +9 -11
  222. package/skills/cometchat-react-calls/references/raise-hand.md +14 -14
  223. package/skills/cometchat-react-calls/references/recording-screen-share.md +39 -38
  224. package/skills/cometchat-react-calls/references/ringing-integration.md +2 -2
  225. package/skills/cometchat-react-calls/references/share-invite.md +4 -5
  226. package/skills/cometchat-react-calls/references/testing-calls-on-web.md +20 -2
  227. package/skills/cometchat-react-calls/references/virtual-background.md +32 -0
  228. package/skills/cometchat-react-patterns/SKILL.md +45 -5
  229. package/skills/cometchat-react-push/SKILL.md +258 -72
  230. package/skills/cometchat-react-router-patterns/SKILL.md +12 -6
  231. package/skills/cometchat-react-testing/SKILL.md +14 -5
  232. package/skills/cometchat-theming/SKILL.md +181 -18
  233. package/skills/cometchat-troubleshooting/SKILL.md +40 -20
@@ -9,14 +9,15 @@ description: >
9
9
  subtitleView, trailingView, listItemView, or customizing the conversations screen.
10
10
  Also use when the user asks about showing a list of chats or recent conversations.
11
11
  license: "MIT"
12
- compatibility: "cometchat_chat_uikit ^6.0.0-beta2; flutter_bloc ^8.1.0"
13
- allowed-tools: "shell, file-read, file-search, file-list, grep"
12
+ compatibility: "cometchat_chat_uikit ^6.0.1; flutter_bloc ^8.1.0"
14
13
  metadata:
15
14
  author: "CometChat"
16
15
  version: "3.0.0"
17
16
  tags: "cometchat flutter conversations chat-list recent-chats bloc"
18
17
  ---
19
18
 
19
+ > **Ground truth:** `cometchat_chat_uikit: ^6.0` — pub-cache source + `ui-kit/flutter`. **Official docs:** https://www.cometchat.com/docs/ui-kit/flutter/overview · **Docs MCP:** `claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp` (or fetch the URL directly without MCP). Verify symbols against the installed package/source before relying on them.
20
+
20
21
  # CometChat Flutter UIKit — Conversations
21
22
 
22
23
  The `CometChatConversations` widget displays a list of recent conversations with real-time updates.
@@ -40,7 +41,7 @@ CometChatConversations(
40
41
  ## Architecture
41
42
 
42
43
  ```
43
- conversations/
44
+ conversations/ # Key folders (excerpt)
44
45
  ├── bloc/
45
46
  │ ├── conversations_bloc.dart # SDK listeners, real-time updates, O(1) lookups
46
47
  │ ├── conversations_event.dart # LoadConversations, DeleteConversation, etc.
@@ -48,7 +49,10 @@ conversations/
48
49
  ├── domain/usecases/ # GetConversationsUseCase, DeleteConversationUseCase, etc.
49
50
  ├── data/ # Repository + DataSources (remote + local)
50
51
  ├── di/ # ConversationsServiceLocator (singleton)
51
- └── widgets/ # List item, subtitle, trailing, empty/error/loading views
52
+ ├── utils/ # Helpers (date formatting, last-message preview, etc.)
53
+ ├── widgets/ # List item, subtitle, trailing, empty/error/loading views
54
+ ├── cometchat_conversations.dart # Public widget entry point
55
+ └── cometchat_conversations_style.dart # Style class
52
56
  ```
53
57
 
54
58
  ## State Classes
@@ -72,8 +76,11 @@ ConversationsError // Error with message + optional previousConversations
72
76
  | `DeleteConversation(id)` | Calls SDK to delete |
73
77
  | `RemoveConversation(id)` | Remove from list without SDK call (e.g., after group kick) |
74
78
  | `SetActiveConversation(id)` | Track which conversation is open |
75
- | `UpdateConversation(id, conversation)` | Update a specific conversation's data |
79
+ | `UpdateConversation({required conversationId, required updatedConversation, forceUpdate})` | Update a specific conversation's data. `forceUpdate` defaults to `true`. **Named params — positional form will not compile.** |
76
80
  | `ResetUnreadCount(id)` | Clear unread badge when user reads messages |
81
+ | `RefreshConversations` | Re-fetch the list from the SDK (e.g., after a manual refresh gesture) |
82
+ | `ToggleConversationSelection(id)` | Add/remove a conversation from the multi-select set |
83
+ | `ClearConversationSelection` | Exit multi-select mode and clear selection |
77
84
 
78
85
  ## Real-Time Features
79
86
 
@@ -116,15 +123,26 @@ CometChatConversations(
116
123
  // Style overrides
117
124
  conversationsStyle: CometChatConversationsStyle(
118
125
  backgroundColor: colors.background1,
119
- titleStyle: typography.heading3?.bold,
126
+ titleTextStyle: typography.heading3?.bold,
120
127
  ),
121
128
 
122
- // Configuration
129
+ // Configuration (all bool? — defaults supplied if null)
123
130
  usersStatusVisibility: true,
124
131
  receiptsVisibility: true,
125
132
  deleteConversationOptionVisibility: true,
126
133
  hideAppbar: false,
127
- showBackButton: false,
134
+ showBackButton: true,
135
+
136
+ // Callbacks — onBack is REQUIRED when showBackButton: true, otherwise the button is a no-op
137
+ onBack: () => Navigator.of(context).maybePop(),
138
+
139
+ // Error callback — OnError typedef is `Function(Exception e)`
140
+ // Pair with hideError / errorStateView if you want to suppress or replace the in-widget error view.
141
+ onError: (Exception e) => ScaffoldMessenger.of(context).showSnackBar(
142
+ SnackBar(content: Text('Failed to load conversations: $e')),
143
+ ),
144
+
145
+ // Other widget callbacks: onItemLongPress, onSelection, onEmpty, onLoad
128
146
 
129
147
  // Text formatters for subtitle preview
130
148
  textFormatters: [
@@ -172,12 +190,19 @@ onItemTap: (conv) {
172
190
  ```
173
191
 
174
192
  ```dart
175
- // WRONG creating BLoC without initializing ServiceLocator
176
- final bloc = ConversationsBloc(/* ... */);
193
+ // ⚠️ The ServiceLocator is auto-initialized on first use, but calling
194
+ // setup() explicitly in main.dart before runApp() is the documented contract
195
+ // and surfaces any init failures early.
177
196
 
178
- // ✅ CORRECT — setup first (widget does this automatically)
197
+ // ✅ RECOMMENDEDexplicit setup, then construct
179
198
  ConversationsServiceLocator.instance.setup();
180
199
  final bloc = ConversationsBloc(
200
+ // Minimal example — the constructor also accepts:
201
+ // getConversationsUseCase, loadMoreConversationsUseCase,
202
+ // disableSDKListeners, conversationsRequestBuilder,
203
+ // usersStatusVisibility, receiptsVisibility, includeBlockedUsers,
204
+ // visibleItemThreshold, disableSoundForMessages, customSoundForMessages,
205
+ // conversationsProtocol — all optional.
181
206
  getLoggedInUserUseCase: ConversationsServiceLocator.instance.getLoggedInUserUseCase,
182
207
  getConversationUseCase: ConversationsServiceLocator.instance.getConversationUseCase,
183
208
  markAsDeliveredUseCase: ConversationsServiceLocator.instance.markAsDeliveredUseCase,
@@ -203,8 +228,11 @@ ValueListenableBuilder<List<TypingIndicator>>(
203
228
  ## Checklist
204
229
 
205
230
  - [ ] `onItemTap` extracts `User`/`Group` from `conversation.conversationWith`
231
+ - [ ] `onBack` wired when `showBackButton: true` (otherwise the back button is a no-op)
232
+ - [ ] `onError` callback (or `errorStateView` / `hideError`) wired so widget errors surface to users
206
233
  - [ ] `subscriptionType` set in UIKitSettings (required for real-time updates)
207
234
  - [ ] Typing indicators use `ValueListenableBuilder`, not BLoC state
208
235
  - [ ] Custom list items use `CometChatThemeHelper` for colors
209
236
  - [ ] Text formatters passed if using mentions or markdown in subtitle preview
210
237
  - [ ] `deleteConversationOptionVisibility` set based on app requirements
238
+ - [ ] `UpdateConversation` dispatched with **named** params (`conversationId`, `updatedConversation`) — positional form will not compile
@@ -10,8 +10,7 @@ description: >
10
10
  uninitialized ServiceLocator. Make sure to use this skill for any CometChat Flutter
11
11
  UIKit code, even simple widget usage.
12
12
  license: "MIT"
13
- compatibility: "cometchat_chat_uikit ^6.0.0-beta2; flutter_bloc ^8.1.0"
14
- allowed-tools: "shell, file-read, file-search, file-list, grep"
13
+ compatibility: "cometchat_chat_uikit ^6.0.1; flutter_bloc ^8.1.0. File-based init (CometChatUIKit.initFromSettings + project-root cometchat-settings.json — ENG-35866 Skills Telemetry) requires cometchat_chat_uikit >= 6.0.3; on older UIKit use the UIKitSettingsBuilder fallback."
15
14
  metadata:
16
15
  author: "CometChat"
17
16
  version: "3.0.0"
@@ -20,11 +19,77 @@ metadata:
20
19
 
21
20
  # CometChat Flutter UIKit — Core Rules
22
21
 
22
+ > **Ground truth:** `cometchat_chat_uikit: ^6.0` (calls folded in; transitively `cometchat_sdk ^5` + `cometchat_calls_sdk ^5.0.2`) — the pub-cache package source + `docs/ui-kit/flutter`. **Official docs:** https://www.cometchat.com/docs/ui-kit/flutter/overview · **Docs MCP:** `claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp` (or fetch the URL directly without MCP). Verify Dart symbols against the resolved package source before relying on them.
23
+
23
24
  Non-negotiable constraints for all CometChat UIKit code. Violating these causes silent failures or crashes.
24
25
 
25
26
  ## Rule: INIT_FIRST
26
27
 
27
- `CometChatUIKit.init()` must complete before any login, component usage, or SDK call.
28
+ Init — `CometChatUIKit.initFromSettings()` (recommended) or the `CometChatUIKit.init(uiKitSettings: …)` fallback — must complete before any login, component usage, or SDK call.
29
+
30
+ ### File-based init with `cometchat-settings.json` (recommended)
31
+
32
+ > **🚧 Version gate (ENG-35866 — Skills Telemetry).** `CometChatUIKit.initFromSettings()` ships in **`cometchat_chat_uikit` ≥ `6.0.3`** (which pulls `cometchat_sdk ^5.0.3` + `cometchat_calls_sdk ^5.0.2` transitively). It reads `cometchat-settings.json` via `rootBundle` and lets the SDK self-report `integrationSource`. On older UIKit the method does not exist — use the **`UIKitSettingsBuilder` fallback** below. If unsure of the installed version, use the fallback.
33
+
34
+ **Step 1 — create `cometchat-settings.json` at the project root.** Fill `appId` / `region` / `credentials.authKey` from the CLI `provision setup` output; leave everything else at the defaults below. These are the **same credentials** used everywhere else in the app — this file is the single source, so there's no second copy to keep in sync.
35
+
36
+ ```json
37
+ {
38
+ "appId": "APP_ID_HERE",
39
+ "region": "us",
40
+ "credentials": {
41
+ "authKey": "AUTH_KEY_HERE"
42
+ },
43
+ "chatSDK": {
44
+ "presenceSubscription": {
45
+ "type": "ALL_USERS",
46
+ "roles": []
47
+ },
48
+ "autoEstablishSocketConnection": true,
49
+ "adminHost": null,
50
+ "clientHost": null
51
+ },
52
+ "callsSDK": {
53
+ "host": null,
54
+ "adminHost": null,
55
+ "clientHost": null,
56
+ "callsHost": null
57
+ },
58
+ "uiKit": {
59
+ "subscribePresenceForAllUsers": true
60
+ }
61
+ }
62
+ ```
63
+
64
+ **Step 2 — register it as a bundled asset in `pubspec.yaml`.** The SDK loads it with `rootBundle.loadString('cometchat-settings.json')`, so the asset key must be the bare filename — register it at the **root** (not nested under `assets/`, which would make the key `assets/cometchat-settings.json` and the lookup miss):
65
+
66
+ ```yaml
67
+ flutter:
68
+ assets:
69
+ - assets/
70
+ - cometchat-settings.json
71
+ ```
72
+
73
+ - **Do NOT gitignore `cometchat-settings.json`.** The dev-mode `authKey` it holds is no more exposed than a `--dart-define=COMETCHAT_AUTH_KEY=…` value (both ship in the built app); production integrations migrate to server-minted auth tokens regardless.
74
+
75
+ **Step 3 — init in `main()`.** No `UIKitSettingsBuilder`, no config const — the SDK reads `cometchat-settings.json` itself:
76
+
77
+ ```dart
78
+ import 'package:flutter/material.dart';
79
+ import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
80
+
81
+ void main() async {
82
+ WidgetsFlutterBinding.ensureInitialized();
83
+ // tier2-version-gated: initFromSettings ships in cometchat_chat_uikit >= 6.0.3 (ENG-35866).
84
+ await CometChatUIKit.initFromSettings(
85
+ onSuccess: (String successMessage) => debugPrint('Init done'),
86
+ onError: (CometChatException e) => debugPrint('Init failed: ${e.message}'),
87
+ );
88
+ runApp(const MyApp());
89
+ }
90
+ ```
91
+
92
+ ### `UIKitSettingsBuilder` init (fallback — UIKit before `6.0.3`)
28
93
 
29
94
  ```dart
30
95
  // ✅ CORRECT
@@ -90,14 +155,16 @@ CometChatUIKit.init(
90
155
  User? existingUser = await CometChat.getLoggedInUser();
91
156
  ```
92
157
 
93
- ## Rule: SCAFFOLD_NO_RESIZE
158
+ ## Rule: SCAFFOLD_NO_RESIZE (version-aware — prose guidance, not a lint)
159
+
160
+ On `cometchat_chat_uikit ^6.0.1`, a `Scaffold` containing `CometChatMessageComposer` should use `resizeToAvoidBottomInset: true` (or omit it — `true` is Flutter's default). The composer clamps the native keyboard height to Flutter's `viewInsets` (kit fix **ENG-34434**), so `true` does NOT double-compensate. The kit sample app uses `true` (the messages screen defaults it; the thread screen sets it explicitly).
94
161
 
95
- Any `Scaffold` containing `CometChatMessageComposer` MUST set `resizeToAvoidBottomInset: false`. The composer handles keyboard spacing internally via `SliverSpacing`. Leaving it `true` causes double-compensation and layout jumps.
162
+ The old "must be `false`" rule was correct only for **pre-6.0.1** kits (before the clamp landed). On those versions `false` was the workaround for the double-compensation / layout-jump bug. If you see a double keyboard gap on a current kit, the fix is to upgrade to `^6.0.1` — not to set `false`.
96
163
 
97
164
  ```dart
98
- // ✅ CORRECT
165
+ // ✅ CORRECT on ^6.0.1 (true, or omit — true is the default)
99
166
  Scaffold(
100
- resizeToAvoidBottomInset: false,
167
+ resizeToAvoidBottomInset: true,
101
168
  body: Column(
102
169
  children: [
103
170
  Expanded(child: CometChatMessageList(user: user)),
@@ -106,8 +173,10 @@ Scaffold(
106
173
  ),
107
174
  )
108
175
 
109
- // WRONGdefault is true, causes double keyboard compensation
176
+ // Only on PRE-6.0.1 kits false was the stopgap before the ENG-34434 clamp.
177
+ // On ^6.0.1 this is unnecessary; upgrade the kit instead.
110
178
  Scaffold(
179
+ resizeToAvoidBottomInset: false,
111
180
  body: Column(
112
181
  children: [
113
182
  Expanded(child: CometChatMessageList(user: user)),
@@ -117,6 +186,23 @@ Scaffold(
117
186
  )
118
187
  ```
119
188
 
189
+ ## Rule: ANDROID_MINSDK_26
190
+
191
+ **Set `minSdk = 26` in `android/app/build.gradle.kts` (In-code path too, not just Visual Builder).** `cometchat_chat_uikit: ^6.0.1` depends transitively on `cometchat_calls_sdk` (`>=5.0.2 <6.0.0`), which floors Android `minSdk` at **26**. A default `flutter create` app sets `minSdk` lower (Flutter's platform default), so `flutter build apk` fails with:
192
+
193
+ ```
194
+ uses-sdk:minSdkVersion 21 cannot be smaller than version 26 declared in library [cometchat_calls_sdk]
195
+ ```
196
+
197
+ `flutter analyze` does NOT catch this — it only surfaces at the APK/AAB build. Set it up front:
198
+
199
+ ```kotlin
200
+ // android/app/build.gradle.kts
201
+ android { defaultConfig { minSdk = 26 } }
202
+ ```
203
+
204
+ (Verified — real `flutter build apk --debug` against kit 6.0.1.)
205
+
120
206
  ## Rule: LISTENER_LIFECYCLE
121
207
 
122
208
  SDK listeners MUST be registered with a unique ID in `initState()` and removed with the same ID in `dispose()`. Forgetting removal causes duplicate events and memory leaks.
@@ -298,7 +384,7 @@ Every component follows this structure:
298
384
  - [ ] Auth check uses `CometChatUIKit.loggedInUser` after init, not `CometChat.getLoggedInUser()`
299
385
  - [ ] `subscriptionType` set in UIKitSettingsBuilder
300
386
  - [ ] `region` is lowercase
301
- - [ ] Scaffold has `resizeToAvoidBottomInset: false` if composer is present
387
+ - [ ] Scaffold hosting `CometChatMessageComposer` uses `resizeToAvoidBottomInset: true` (or omits it) on `^6.0.1` — the composer clamps to `viewInsets` (ENG-34434); `false` is only the pre-6.0.1 stopgap
302
388
  - [ ] Theme cached in `didChangeDependencies()`, not `build()`
303
389
  - [ ] SDK listeners registered with unique ID, removed in `dispose()`
304
390
  - [ ] Colors from `CometChatThemeHelper`, never hardcoded
@@ -321,7 +407,9 @@ This is intentionally a heavier copy than iOS (Pod) / Android (Gradle plugin)
321
407
  cometchat builder export --platform flutter --json
322
408
  ```
323
409
 
324
- Defaults to `--output chat_builder/`. The command writes the entire canonical `chat_builder/` Dart package (~50 files: `lib/`, `assets/`, `android/`, `ios/`, `pubspec.yaml`) — verbatim from the canonical ZIP — and patches `chat_builder/assets/sample_app/cometchat-builder-settings.json` with the **envelope-shape JSON** `{ builderId, name, settings: {...} }` (F3 + F10 defaults injected: `mentionAll: true`, `inAppSounds: { incomingMessageSound: true, outgoingMessageSound: true }`). No SKILLS-AUTO-GENERATED sentinel (JSON forbids `//` comments).
410
+ Defaults to `--output chat_builder/`. The command writes the entire canonical `chat_builder/` Dart package (~50 files: `lib/`, `assets/`, `android/`, `ios/`, `pubspec.yaml`) — verbatim from the canonical ZIP — and patches `chat_builder/assets/sample_app/cometchat-builder-settings.json` with the **envelope-shape JSON** the CLI emits: `{ builderId, name, settings: {...} }` (F3 + F10 defaults injected: `mentionAll: true`, `inAppSounds: { incomingMessageSound: true, outgoingMessageSound: true }`). No SKILLS-AUTO-GENERATED sentinel (JSON forbids `//` comments).
411
+
412
+ > The CLI is the source of truth for the written shape. The vendor canonical's own checked-in `cometchat-builder-settings.json` carries only `{ builderId, settings }` (no top-level `name`) — `BuilderSettingsHelper.loadFromAsset()` reads only `builderId` + `settings` and **ignores any extra top-level keys**, so the CLI's additional `name` (and any other extras) are harmless.
325
413
 
326
414
  `BuilderSettingsHelper.loadFromAsset()` reads this exported settings file at runtime.
327
415
 
@@ -366,10 +454,10 @@ The standard prescription `cp -r chat_builder/assets/ assets/` is additive — f
366
454
 
367
455
  | Path | Patch |
368
456
  |---|---|
369
- | `pubspec.yaml` | Add `chat_builder: { path: ./chat_builder }` to dependencies. Add `assets/` + `assets/sample_app/` to `flutter.assets`. Add font families `arial / inter / roboto / times New Roman` exactly as defined in `chat_builder/pubspec.yaml` |
457
+ | `pubspec.yaml` | Add `chat_builder: { path: ./chat_builder }` to dependencies. Add `assets/` + `assets/sample_app/` to `flutter.assets`. Add font families `arial / inter / roboto / times New Roman` exactly as defined in `chat_builder/pubspec.yaml`. **As a `path:` dependency the `chat_builder` package carries its own transitive deps** (`get`, `shared_preferences`, `http`, `toast`, `path_provider`, `permission_handler`, `intl` per `chat_builder/pubspec.yaml`) and pub resolves them automatically — you do NOT list them in the host app. Only if you vendor `chat_builder`'s Dart files directly into your app (instead of using the `path:` dep) must you add those seven to your own `dependencies` |
370
458
  | `lib/main.dart` | Insert `WidgetsFlutterBinding.ensureInitialized()` + `await BuilderSettingsHelper.loadFromAsset()` before `runApp()` |
371
459
  | `ios/Podfile` | `platform :ios, '13.0'` (raise if lower) |
372
- | `android/app/build.gradle.kts` | `ndkVersion = "27.0.12077973"`, `minSdk = 24` (raise if lower) |
460
+ | `android/app/build.gradle.kts` | `ndkVersion = "27.0.12077973"`, **`minSdk = 26`** (REQUIRED `cometchat_chat_uikit 6.0.1` pulls `cometchat_calls_sdk` transitively, which floors `minSdk` at 26; a default `flutter create` sets it lower and `flutter build apk` then fails with "uses-sdk:minSdkVersion … cannot be smaller than version 26 declared in library [cometchat_calls_sdk]") |
373
461
  | `android/gradle.properties` | **Non-negotiable:** append `android.enableJetifier=true`. CometChat Chat SDK transitively pulls `com.android.support:support-compat:26.1.0` which collides with `androidx.core:core` — without Jetifier the build fails with `Duplicate class android.support.v4.os.ResultReceiver` etc. Same root cause as `cometchat-android-v6-core` §1.3a — Flutter's Android side has identical exposure. Validated 2026-05-19 on smoke test |
374
462
  | `android/app/src/main/AndroidManifest.xml` + `ios/Runner/Info.plist` | `RECORD_AUDIO` / `CAMERA` permissions + `NSMicrophoneUsageDescription` / `NSCameraUsageDescription` if any call feature is enabled |
375
463
 
@@ -386,15 +474,49 @@ Future<void> main() async {
386
474
  }
387
475
  ```
388
476
 
389
- `BuilderSettingsHelper.loadFromAsset()` reads `chat_builder/assets/cometchat-builder-settings.json` and populates the in-memory settings the `ChatBuilder.*` screens consume. Standard `CometChatUIKit.init(uiKitSettings: ...)` (see this file's `INIT_FIRST` rule) is still required and runs before any chat surface mounts — the wrapper below handles that.
477
+ `BuilderSettingsHelper.loadFromAsset()` reads `assets/sample_app/cometchat-builder-settings.json` and populates the in-memory settings the `ChatBuilder.*` screens consume. Standard `CometChatUIKit.init(uiKitSettings: ...)` (see this file's `INIT_FIRST` rule) is still required and runs before any chat surface mounts.
478
+
479
+ > **`runApp(const MyApp())` above assumes you keep `flutter create`'s default `MyApp` class.** If you instead use the **Recommended** root below (`CometChatBuilderRoot`), you've renamed/removed `MyApp` — so also **delete or update `test/widget_test.dart`** (the default test instantiates `MyApp()` and will otherwise fail `flutter analyze` with `The name 'MyApp' isn't a class`). Pick ONE root-widget name and keep main.dart + the test file consistent. (Verified 2026-06-14: this orphaned test was the only `flutter analyze` error on a clean builder-export wiring.)
480
+
481
+ > **Extensions + AI features are dashboard-enabled in V6 — do NOT add V5-style `..extensions` / `..aiFeature` / `..callingExtension` setters.** Those three `UIKitSettingsBuilder` fields exist in the **V5** kit (and the builder reference app is V5-shaped — `chat_builder` pins `cometchat_chat_uikit ^5.2.x`, so its `InitializeCometChat.init()` passes them). They were **removed in V6** — adding them does not compile against `cometchat_chat_uikit ^6.0.1`. In V6 the extension-backed builder features (polls, collaborative whiteboard/document, stickers, message translation, reactions) and AI features are turned on in the **CometChat dashboard** (the builder enables them server-side) and the kit auto-wires them; calling is enabled with `..enableCalls = true`. So the V6 `UIKitSettingsBuilder` needs only `appId`/`region`/`authKey`/`subscriptionType` (+ `enableCalls` for calls) — the builder JSON's feature flags render because the features are enabled on the app, not because of a builder setter.
482
+
483
+ ### Recommended: mount `ChatBuilder.createApp()` as the root
484
+
485
+ The cleanest integration mirrors the canonical's own `lib/main.dart`, which mounts `ChatBuilder.createApp()` directly as the app root and lets the package own init, theming, and call-navigation wiring:
486
+
487
+ ```dart
488
+ // lib/main.dart
489
+ import 'package:flutter/material.dart';
490
+ import 'package:chat_builder/builder/chat_builder.dart';
491
+ import 'package:chat_builder/builder/builder_settings_helper.dart';
492
+ // ...plus the package's prefs/page-manager bootstrap if you vendor those files
493
+
494
+ Future<void> main() async {
495
+ WidgetsFlutterBinding.ensureInitialized();
496
+ await BuilderSettingsHelper.loadFromAsset();
497
+ runApp(const CometChatBuilderRoot());
498
+ }
499
+
500
+ class CometChatBuilderRoot extends StatelessWidget {
501
+ const CometChatBuilderRoot({super.key});
502
+
503
+ @override
504
+ Widget build(BuildContext context) => ChatBuilder.createApp();
505
+ }
506
+ ```
507
+
508
+ `ChatBuilder.createApp()` returns a `MaterialApp` that already wires (a) `CometChatColorPalette` as a `ThemeData` extension in BOTH light and dark themes — this is what actually applies the builder's brand color + text colors to the kit, and (b) `navigatorKey: CallNavigationContext.navigatorKey` so incoming-call routing works. Use this path when CometChat owns the whole chat surface.
509
+
510
+ ### Alternative: a host-app wrapper (when you can't mount `createApp()` as root)
390
511
 
391
- ### The wrapper template
512
+ If the host app already owns its root `MaterialApp` and you must mount CometChat as a sub-surface (a route/tab/dialog), hand-roll a wrapper — but you are then responsible for replicating what `createApp()` does for you: the theme palette and the navigator key.
392
513
 
393
514
  ```dart
394
515
  // lib/cometchat/cometchat_app.dart
395
516
  import 'package:flutter/material.dart';
396
517
  import 'package:chat_builder/builder/chat_builder.dart';
397
518
  import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
519
+ import 'package:cometchat_calls_uikit/cometchat_calls_uikit.dart';
398
520
 
399
521
  import 'secrets.dart';
400
522
 
@@ -420,6 +542,9 @@ class _CometChatAppState extends State<CometChatApp> {
420
542
  }
421
543
 
422
544
  void _bootstrap() {
545
+ // V6: extensions + AI features are dashboard-enabled and auto-wire — there
546
+ // are NO ..extensions / ..aiFeature / ..callingExtension setters (those are
547
+ // V5; see callout above). Add ..enableCalls = true if you need calling.
423
548
  final settings = (UIKitSettingsBuilder()
424
549
  ..appId = Secrets.appId
425
550
  ..region = Secrets.region
@@ -442,8 +567,11 @@ class _CometChatAppState extends State<CometChatApp> {
442
567
  if (!_isReady) {
443
568
  return const Scaffold(body: Center(child: CircularProgressIndicator()));
444
569
  }
570
+ // The bare Scaffold below does NOT apply the builder's theme palette.
571
+ // If this wrapper owns the MaterialApp, replicate the canonical's
572
+ // ThemeData (both light + dark) and navigatorKey — see note below.
445
573
  return Scaffold(
446
- resizeToAvoidBottomInset: false,
574
+ resizeToAvoidBottomInset: true,
447
575
  body: Center(
448
576
  child: ElevatedButton(
449
577
  onPressed: () => ChatBuilder.launchBuilder(context),
@@ -455,6 +583,39 @@ class _CometChatAppState extends State<CometChatApp> {
455
583
  }
456
584
  ```
457
585
 
586
+ If this wrapper (or the host app) supplies the root `MaterialApp`, theme color/typography are honored ONLY if you wire `CometChatColorPalette` as a `ThemeData` extension and set the navigator key — both UNCONDITIONALLY, exactly as the canonical's `ChatBuilder.createApp()` does (it sets both regardless of whether calls are enabled):
587
+
588
+ ```dart
589
+ MaterialApp(
590
+ theme: ThemeData(
591
+ fontFamily: /* builder typography font */,
592
+ extensions: [
593
+ CometChatColorPalette(
594
+ textPrimary: /* builder light primary text */,
595
+ textSecondary: /* builder light secondary text */,
596
+ primary: /* builder brand color */,
597
+ ),
598
+ ],
599
+ ),
600
+ darkTheme: ThemeData(
601
+ fontFamily: /* builder typography font */,
602
+ extensions: [
603
+ CometChatColorPalette(
604
+ textPrimary: /* builder dark primary text */,
605
+ textSecondary: /* builder dark secondary text */,
606
+ primary: /* builder brand color */,
607
+ ),
608
+ ],
609
+ ),
610
+ // UNCONDITIONAL — the canonical wires this in every MaterialApp it builds,
611
+ // not just when calls are enabled. Incoming-call routing needs it (Bug 1),
612
+ // and gating it behind "calls enabled" breaks call routing if a feature flag
613
+ // is flipped on later in the dashboard without a code change.
614
+ navigatorKey: CallNavigationContext.navigatorKey,
615
+ home: /* your chat surface */,
616
+ )
617
+ ```
618
+
458
619
  `ChatBuilder.launchBuilder(context)` opens the builder's login / dashboard flow; once a user is logged in, the package's internal navigation handles conversations → messages.
459
620
 
460
621
  For direct deep-links into a specific user or group thread (skipping the dashboard), use:
@@ -466,17 +627,17 @@ ChatBuilder.launchMessages(context: context, group: group);
466
627
 
467
628
  These are the two public entry points the `chat_builder` package exposes — see `chat_builder/lib/builder/chat_builder.dart` (inside the Flutter Visual Builder ZIP at https://preview.cometchat.com/downloads/cometchat-builder-flutter.zip).
468
629
 
469
- `resizeToAvoidBottomInset: false` is non-negotiable on any `Scaffold` whose body chain reaches `CometChatMessageComposer` (see this file's `SCAFFOLD_NO_RESIZE` rule). The composer handles keyboard spacing internally.
630
+ On `^6.0.1`, any `Scaffold` whose body chain reaches `CometChatMessageComposer` should use `resizeToAvoidBottomInset: true` (or omit it — `true` is the default), because the composer clamps the keyboard height to `viewInsets` (ENG-34434). See this file's `SCAFFOLD_NO_RESIZE` rule `false` is only the pre-6.0.1 stopgap.
470
631
 
471
632
  ### Calls + builder
472
633
 
473
- If `CometChatBuilderSettings` reports any call feature enabled, the `chat_builder` package handles incoming/outgoing call surfaces internally (it ships its own call routes). External wiring still required:
634
+ If any `VoiceAndVideoCalling.*` flag is enabled in the builder settings (e.g. `VoiceAndVideoCalling.oneOnOneVoiceCalling` — there is NO `CometChatBuilderSettings` type; the canonical app uses plain static-field holders like `VoiceAndVideoCalling`/`CoreMessagingExperience` in `builder_settings.dart`), the `chat_builder` package handles incoming/outgoing call surfaces internally (it ships its own call routes). External wiring still required:
474
635
  1. Add `cometchat_calls_uikit` to `pubspec.yaml`
475
636
  2. iOS `Info.plist` + Android `AndroidManifest.xml` permissions per `cometchat-flutter-v6-calls`
476
- 3. Apply the `navigatorKey: CallNavigationContext.navigatorKey` workaround documented in `cometchat-flutter-v6-calls` §1.7 (kit 6.0.0-beta2 requires this for incoming-call routing)
477
- 4. Push wiring — defer to `cometchat-flutter-v6-push` (audit-verified namespace `PNRegistry`, NOT `CometChatNotifications` — [[project_sdk_symbol_audit_2026_05_14]])
478
- 5. **Vendor blocker:** outgoing→in-call transition is broken on `cometchat_chat_uikit 6.0.0-beta2` ([[project_v6_flutter_calls_partial]]); Flutter V5 cohort is production-recommended until vendor fix lands
637
+ 3. `navigatorKey: CallNavigationContext.navigatorKey` on the root `MaterialApp` — kit 6.0.1 requires this for incoming-call routing (Bug 1; see `cometchat-flutter-v6-calls` §1.7). Note the canonical wires this **unconditionally** in `ChatBuilder.createApp()` (it does NOT gate on whether calls are enabled), and the "Alternative: host-app wrapper" guidance above does the same — so if you mounted `ChatBuilder.createApp()` or followed that MaterialApp template, this is already in place
638
+ 4. Push wiring — defer to `cometchat-flutter-v6-push`. The real token-registration API is `CometChatNotifications.registerPushToken(PushPlatforms.FCM_FLUTTER_ANDROID, fcmToken: …)`; a class named `PNRegistry` does **not** exist anywhere in the SDK or UI Kit (verified against `cometchat_sdk/lib/notification/main/cometchat_notifications.dart` 2026-06-03 supersedes the inverted [[project_sdk_symbol_audit_2026_05_14]] claim)
639
+ 5. **6.0.1 GA status:** the beta2 outgoing→in-call transition bug is FIXED in 6.0.1 ([[project_v6_flutter_calls_partial]]). V6 calls now work end-to-end once the navigatorKey line in step 3 is in place — V5 is no longer required for calls.
479
640
 
480
641
  ### What is NOT honored in v1
481
642
 
482
- Skills emits a launch-button trigger, not the full multi-tab layout the `chat_builder` package's internal `Dashboard` provides. Customers get the dashboard once they tap "Open chat" — but the host-app surface is intentionally minimal so Step 3c placement (route, tab, dialog) can decide the mount shape. Theme color + typography + chat-feature toggles ARE honored via the embedded package. For deep customization beyond what the builder JSON allows, fall back to the code-driven path (see this file's standard placement pattern) and skip `chat_builder` entirely.
643
+ Skills emits a launch-button trigger, not the full multi-tab layout the `chat_builder` package's internal `Dashboard` provides. Customers get the dashboard once they tap "Open chat" — but the host-app surface is intentionally minimal so Step 3c placement (route, tab, dialog) can decide the mount shape. Chat-feature toggles ARE honored via the builder JSON. **Theme color + typography are honored ONLY if the mounted root is `ChatBuilder.createApp()` (or a `MaterialApp` that replicates its `CometChatColorPalette` `ThemeData` extension + `fontFamily`)** the bare-`Scaffold` wrapper above does NOT apply that palette, so on that path the kit falls back to default colors. See the "Alternative: host-app wrapper" guidance for the exact `ThemeData` wiring. For deep customization beyond what the builder JSON allows, fall back to the code-driven path (see this file's standard placement pattern) and skip `chat_builder` entirely.