cometchat/cometchat-uikit-flutter/cometchat-flutter-v5-to-v6-migration
Claude Code and agent skill by cometchat/cometchat-uikit-flutter
- community
Checking that the SKILL.md file is still in the repository.
Use when migrating a CometChat Flutter app from UIKit v5 (cometchat_calls_uikit + GetX) to UIKit v6 (cometchat_chat_uikit unified package, no GetX). Covers import changes, dependency cleanup, GetX removal, init/login pattern changes, navigation rewrites, screen structure flattening, notification service updates, and BuilderSettings removal. Also use when seeing imports from cometchat_calls_uikit, get/get.dart, or v5-era patterns like GetBuilder, Get.put, Get.find, PageManager, BuilderSettings,…
Install
npx vskill@latest install cometchat/cometchat-uikit-flutter/cometchat-flutter-v5-to-v6-migrationSKILL.md
The same SKILL.md was published earlier as cometchat/cometchat-uikit-flutter/cometchat-flutter-v5-to-v6-migration.
CometChat Flutter — v5 to v6 Migration
Complete guide for migrating a consumer app from UIKit v5 to v6.
What Changed
| Area | v5 | v6 | |
|---|---|---|---|
| Packages | cometchat_chat_uikit + cometchat_calls_uikit (separate) | cometchat_chat_uikit only (calls bundled) | |
| State | GetX (Get.put, GetBuilder, Obx, .obs, RxBool) | Plain StatefulWidget + setState() | |
| Navigation | PageManager (GetxController singleton) | Direct Navigator.push | |
| Init | InitializeCometChat.init() + CometChatCallingExtension() + extensions + aiFeature | Inline CometChatUIKit.init() + enableCalls: true + CallingConfiguration() | |
| Calls SDK init | CometChatCallingExtension() in extensions list | Automatic with enableCalls: true: the UI Kit sets the Calls SDK up in init/login | |
| Screens | Separate controller + widget files per screen | Single file, state in StatefulWidget | |
| Dashboard | MyHomePage/MyPageView with GetX PageManager | HomeScreen with IndexedStack | |
| Messages | MessagesSample + CometChatMessagesController | MessagesScreen with listener mixins | |
| Builder system | BuilderSettings, BuilderColor, BuilderTypography | Removed — use ComponentToggles | |
| Notifications | VoipNotificationHandler, APNSService | VoipCallHandler, ApnsService | |
| Extra deps | get, google_sign_in, firebase_auth, bugsee_flutter, shared_preferences, toast, mobile_scanner, app_badge_plus | None of these | |
| Localization | cc.Translations.delegate + GlobalMaterialLocalizations in MaterialApp | Handled by UIKit internally | |
| Call screen | callMain() entry point + CallApp + CallScreen widget | CallScreenOverlay.show() (overlay, no separate entry point) | |
| Android minSdk | 24 | 26 (required by cometchat_calls_sdk) |
Step 1: pubspec.yaml
Step 2: Fix All Imports
| v5 Import | v6 Import | |
|---|---|---|
package:cometchat_calls_uikit/cometchat_calls_uikit.dart | package:cometchat_chat_uikit/cometchat_calls_uikit.dart | |
package:get/get.dart | Remove entirely | |
builder/builder_settings.dart | Remove — use ComponentToggles | |
builder/builder_settings_helper.dart | Remove | |
utils/page_manager.dart | Remove — use Navigator.push | |
utils/initialize_cometchat.dart | Remove — inline init | |
utils/bool_singleton.dart | Remove | |
utils/text_constants.dart | Remove | |
prefs/shared_preferences.dart | Remove |
Step 3: Rewrite Init
Removed v5 UIKitSettingsBuilder properties
callingExtension→ replaced byenableCalls: trueextensions→ removed (extensions auto-registered in v6)aiFeature→ removed (AI features auto-registered in v6)
Calls SDK Init for Cached Sessions
- The Calls set-up is bounded:
onSuccess(and the returned future) comes within about 22 s even when the Calls SDK is slow or fails, and a Calls failure never becomesonError(it is retried when a call needs it). Show a splash rather than holdingrunApponawait CometChatUIKit.init(...). - Configure the call UI with
UIKitSettings.callingConfiguration.CallEventService.instance.init(configuration:)is deprecated (removal in 7.0.0): itsconfigurationis only used whenUIKitSettings.callingConfigurationis not set. Do not call it with an emptyCallingConfiguration(). - Only apps that keep
enableCallsoff and want the incoming call UI callawait CallEventService.instance.init();themselves, after login. CallEventService.instance.waitForCallsSdk()returns within 22 s.CallEventService.instance.reinitializeAfterSession()is deprecated and no longer needed after a call.
Step 4: Remove GetX
PageManager → Navigator.push
GetBuilder → StatefulWidget with listener mixins
Rx variables → plain state
Obx dialogs → StatefulBuilder
Step 5: Removed v5 APIs
These v5 widget parameters/classes don't exist in v6:
| v5 API | Status in v6 | |
|---|---|---|
CometChatCompactMessageComposer | Removed — use CometChatMessageComposer | |
CometChatAIAssistantChatHistory | Removed | |
CometChatMessageHeader options param | Removed — use trailingView | |
CometChatMessageList messageId param | Removed — use goToMessageId | |
CometChatMessageList hideFlagOption | Removed | |
CometChatMessageList generateConversationSummary | Removed | |
getDataSource() on message list | Removed | |
AssetConstants.conversationSummaryOutlined | Removed | |
CometChatBannedMembers (standalone widget) | Not exported in v6 | |
CometChatCallLogParticipants (standalone) | Not exported in v6 | |
CometChatCallLogRecordings (standalone) | Not exported in v6 | |
CometChatCallLogHistory (standalone) | Not exported in v6 | |
CometChatCallingExtension() | Replaced by enableCalls: true + CallingConfiguration() | |
CometChatUIKitChatExtensions.getDefaultExtensions() | Removed — auto-registered | |
CometChatUIKitChatAIFeatures.getDefaultAiFeatures() | Removed — auto-registered | |
CallSettingsBuilder | Replaced by SessionSettingsBuilder | |
FormatPatterns.stripFormatting() | Removed | |
CallStateController.instance | Replaced by CallStateService.instance |
CallSettingsBuilder → SessionSettingsBuilder
Step 6: Flatten Screen Structure
Class Rename Map
| v5 Class | v6 Class | |
|---|---|---|
MyHomePage / MyPageView | HomeScreen | |
MessagesSample | MessagesScreen | |
GuardScreen | GuardScreen (same name, rewritten) | |
LoginSampleUsers | LoginScreen |
Step 7: Update MaterialApp
Remove the callMain() entry point and CallApp/CallScreen widget entirely — v6 uses CallScreenOverlay.show().
Step 8: Update Notification Services
| v5 Class | v6 Class | |
|---|---|---|
VoipNotificationHandler | VoipCallHandler | |
APNSService | ApnsService | |
FirebaseService | FirebaseService (same) |
VoIP Cold Start
Step 9: resizeToAvoidBottomInset
Step 10: Android Build
In android/app/build.gradle(.kts):
In android/gradle.properties:
Step 11: Delete v5 Files
This is the start of the file. Read the full SKILL.md on GitHub.
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-v5-to-v6-migration/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-v5-to-v6-migration)