Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cometchat avatar

Cometchat Flutter V5

  • 4 installs
  • 70 repo stars
  • Updated June 23, 2026
  • cometchat/cometchat-skills

Orchestrator for building chat with CometChat Flutter UIKit v5 that routes to feature-specific skills and confirms the two-package v5 setup.

About

Acts as the entry-point skill for CometChat Flutter UIKit v5, detecting the project and routing to feature skills. A developer uses it when starting a chat build on the GetX-based v5 packages.

  • Detects v5 via pubspec (cometchat_chat_uikit + cometchat_calls_uikit)
  • Explains the two-barrel import split for chat vs calls

Cometchat Flutter V5 by the numbers

  • 4 all-time installs (skills.sh)
  • Ranked #874 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cometchat/cometchat-skills --skill cometchat-flutter-v5

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs4
repo stars70
Last updatedJune 23, 2026
Repositorycometchat/cometchat-skills

What it does

Orchestrator for building chat with CometChat Flutter UIKit v5 that routes to feature-specific skills and confirms the two-package v5 setup.

Files

SKILL.mdMarkdownGitHub ↗

CometChat Flutter UIKit v5 — Orchestrator

Entry point skill for the CometChat UIKit v5 packages. Routes to feature skills based on context.

Project Detection

Confirm the project uses CometChat UIKit v5 by checking pubspec.yaml for:

dependencies:
  cometchat_chat_uikit: ^5.2.14
  cometchat_calls_uikit: ^5.0.15  # Optional, for calling features

The v5 uses separate packages (unlike v6 which bundles everything):

  • cometchat_chat_uikit — Chat UI components
  • cometchat_calls_uikit — Call UI components (re-exports cometchat_uikit_shared + cometchat_sdk + cometchat_calls_sdk; does NOT re-export cometchat_chat_uikit)
  • cometchat_uikit_shared — Shared utilities

Imports — two barrels, not one. For chat-only apps, the chat barrel is sufficient. If you also need voice/video calls, add a SECOND import — the calls barrel does NOT re-export the chat barrel.

// Always:
import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';

// Add this only if your app uses calls:
import 'package:cometchat_calls_uikit/cometchat_calls_uikit.dart';

Key v5 vs v6 Differences

Aspectv5v6
State managementGetX (GetBuilder, GetxController)BLoC (Bloc, Equatable)
PackagesSeparate (chat_uikit + calls_uikit)Single (cometchat_chat_uikit)
ControllersGet.put() internallyServiceLocator pattern
SDKcometchat_sdk ^4.1.2cometchat_sdk ^5.0.0

Skill Routing

User mentionsRoute to skill
init, login, logout, UIKitSettings, setup, GetX, GetBuildercometchat-flutter-v5-core
theme, colors, dark mode, styling, CometChatColorPalette, merge()cometchat-flutter-v5-theming
conversations, conversation list, recent chatscometchat-flutter-v5-conversations
messages, message list, composer, compact composer, header, keyboard, threadscometchat-flutter-v5-messages
users, groups, group members, contacts, CometChatChangeScopecometchat-flutter-v5-users-groups
calls, voice call, video call, CometChatCallButtons, incoming call, call logscometchat-flutter-v5-calls
events, listeners, real-time, typing indicator, online status, receiptscometchat-flutter-v5-events
custom bubbles, templates, DataSource, decorator, formatters, slot views, extensionscometchat-flutter-v5-customization
push notifications, FCM, APNs, VoIP, token, firebase messaging, callkitcometchat-flutter-v5-push
auth tokens, ProGuard, release build, security, environment, productioncometchat-flutter-v5-production
error, debug, not working, crash, fix, troubleshoot, verifycometchat-flutter-v5-troubleshooting

Architecture Overview

The UIKit v5 follows a GetX controller pattern:

{component}/
├── cometchat_{component}.dart              # StatefulWidget
├── cometchat_{component}_controller.dart   # extends GetxController
├── cometchat_{component}_style.dart        # ThemeExtension with merge()
└── {component}_builder_protocol.dart       # Request builder protocol

Golden Path — Minimal Chat App (v5)

import 'package:flutter/material.dart';
import 'package:cometchat_chat_uikit/cometchat_chat_uikit.dart';
// Add the calls import only if your app uses voice/video calls:
// import 'package:cometchat_calls_uikit/cometchat_calls_uikit.dart';

const String appId = 'YOUR_APP_ID';
const String region = 'us';
const String authKey = 'YOUR_AUTH_KEY';

void main() => runApp(const MyApp());

class MyApp extends StatefulWidget {
  const MyApp({super.key});
  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  bool _initializing = true;
  bool _loggedIn = false;

  @override
  void initState() {
    super.initState();
    _initCometChat();
  }

  void _initCometChat() {
    final settings = (UIKitSettingsBuilder()
          ..appId = appId
          ..region = region
          ..authKey = authKey
          ..subscriptionType = CometChatSubscriptionType.allUsers
          ..callingExtension = CometChatCallingExtension())
        .build();

    CometChatUIKit.init(
      uiKitSettings: settings,
      onSuccess: (_) {
        setState(() {
          _loggedIn = CometChatUIKit.loggedInUser != null;
          _initializing = false;
        });
      },
      onError: (e) {
        debugPrint('Init failed: ${e.message}');
        setState(() => _initializing = false);
      },
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      navigatorKey: CallNavigationContext.navigatorKey,
      home: _initializing
          ? const Scaffold(body: Center(child: CircularProgressIndicator()))
          : _loggedIn
              ? HomeScreen()
              : LoginScreen(),
    );
  }
}

Key points:

  • Always import package:cometchat_chat_uikit/cometchat_chat_uikit.dart for chat widgets; add package:cometchat_calls_uikit/cometchat_calls_uikit.dart as a second import only when using calls
  • CometChatUIKit.login(uid) takes a String directly
  • CallNavigationContext.navigatorKey set on MaterialApp
  • CometChatCallingExtension() set on UIKitSettingsBuilder
  • subscriptionType always set

Autonomous Mode

  • If pubspec.yaml has cometchat_chat_uikit v5.x or cometchat_calls_uikit v5.x → proceed without asking
  • If credentials exist in code → reuse them
  • If user says "messages screen" → generate Scaffold + Header + List + Composer
  • Always add subscriptionType to UIKitSettingsBuilder
  • Always use CometChatThemeHelper for colors, never hardcode
  • Always import from cometchat_chat_uikit barrel for chat widgets. Add cometchat_calls_uikit as a SECOND import for calls — never as a replacement (the calls barrel does not re-export chat).

Android Build Requirements

  • android.useAndroidX=true and android.enableJetifier=true in gradle.properties
  • minSdk 26 in android/app/build.gradle
  • ProGuard: -keep class com.cometchat.** { *; }

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.