cometchat/cometchat-skills/cometchat-flutter-v6-customization
Claude Code and agent skill by cometchat/cometchat-skills
- community
Checking that the SKILL.md file is still in the repository.
Theme and brand the Flutter v6 UI Kit — light/dark mode, the CometChatColorPalette / CometChatTypography / CometChatSpacing theme extensions, per-widget style objects, and view slots. Triggers: 'change chat colors flutter', 'dark mode chat flutter', 'match my brand flutter', 'customize cometchat theme flutter', 'override message bubble styles'.
Install
npx vskill@latest install cometchat/cometchat-skills/cometchat-flutter-v6-customizationSKILL.md
The same SKILL.md was published earlier as cometchat/cometchat-skills/cometchat-flutter-v6-customization.
Ground truth: theming is Flutter's ownThemeExtensionmechanism —CometChatColorPalette,CometChatTypography,CometChatSpacing, all catalog-verified against 6.1.0 and still present in 6.2.0. The exhaustive token list is FETCHED from the docs (theme-introduction·color-resources·component-styling·message-bubble-stylingvia../cometchat-flutter-v6-core/references/docs-map.md) — do NOT bake it.
Companion skills (read first)
cometchat-flutter-v6-core— install, credentials,init→login→render. This skill ASSUMES it.cometchat-flutter-v6-components— the widget catalog whose style objects and slots this skill sets.
Use this skill when
Branding or theming: colors, fonts, light/dark, or per-widget style overrides.
Cloning a named app, or mixing kit components with your own UI? Measure the target's colors, type, spacing and radii into ONE token source, theme the kit from it, and style every custom component from the same tokens so kit and custom parts look like one design; host a kit component in your own dialog/panel when only its placement differs. Flow: cometchat-onboarding → references/clone-mode.md (Design sync, build levels L0–L6).
Prerequisites & install
Covered by core. No new package.
Customization mechanism (BAKED — v6)
Three tiers, in the order you should reach for them:
1. App-wide theme — `ThemeExtension` on your `ThemeData`. This is the main lever; it restyles every CometChat widget at once.
2. Light / dark — Flutter's own switching, nothing CometChat-specific. Supply both themes and let themeMode decide; ThemeMode.system follows the OS, which is the right default for a fresh app.
Unlike the web kit (athemeprop + CSS variables), Flutter has no CometChat-specific mode switch — do not invent one. Register the palette on BOTH themes or dark mode falls back to defaults.
3. Per-widget style objects — scope one surface only. Every widget takes a *Style object: CometChatConversationsStyle · CometChatMessageHeaderStyle · CometChatMessageListStyle · CometChatMessageComposerStyle · CometChatThreadedHeaderStyle · CometChatSearchStyle · CometChatIncomingMessageBubbleStyle / CometChatOutgoingMessageBubbleStyle · CometChatCallLogsStyle.
Style parameter names are per-widget and NOT guessable — the header usestitleTextColor/onlineStatusColor, the threaded header usesbubbleContainerBackGroundColor/countTextColor, search usessearchBackgroundColor/searchBorderRadius. Fetch the widget's.mdtwin before writing a style block.Message bubbles are themed app-wide throughCometChatIncomingMessageBubbleStyle/CometChatOutgoingMessageBubbleStyleregistered as theme extensions — seemessage-bubble-styling.
Reading theme values in your own widgets
CometChatThemeHelper.getColorPalette(context) (and the typography/spacing equivalents) returns the resolved palette, so custom UI in a slot matches the kit instead of hard-coding hexes.
Beyond colour — the other customization axes (FETCH the page)
- View slots — replace any row/section (
customization-view-slots); custom UI goes IN the slot. - State views —
loadingStateView/emptyStateView/errorStateView(customization-state-views). - Menu options — add or remove message actions via
CometChatMessageOptionand the template'soptions(customization-menu-options). The callback isonItemClick(message, state). - Text formatters —
CometChatMentionsFormatterand customCometChatTextFormattersubclasses (customization-text-formatters,custom-text-formatter-guide). A subclass must implementinit,getMessageInputTextStyle,handlePreMessageSend,onChangeandonScrollToBottom— the class is abstract. - Message templates — custom message types and bubbles (
message-template, →-components). - Sounds — the class is `SoundManager`, UN-prefixed (there is no
CometChatSoundManager), a singleton:SoundManager().play(sound: Sound.incomingMessage, customSound: "assets/ping.mp3")/.stop(). Compiler-verified vs 6.1.0. It is absent from the catalog only because that tracksCometChat*symbols — same asUser/Group. Page:sound-manager. - Localization — via `Translations` (Flutter has no
CometChatLocalize, through 6.2.0):MaterialApp(localizationsDelegates: Translations.localizationsDelegates, supportedLocales: Translations.supportedLocales, ...), read strings withTranslations.of(context), override a language by extending its class (e.g.TranslationsEn) with your own delegate. Verified vs 6.2.0 source (shared_ui/l10n/translations.dart). The livelocalizepage's intro saysCometChatLocalizebut its code usesTranslations; follow the code.
Avatar and sender name on every message (BAKED — verified vs 6.2.0)
The kit shows them only on others' messages in groups. From 6.2.0 alignment: ChatAlignment.leftAligned puts every bubble on the left, but it adds no avatar or name. When the target shows them (Slack, Discord, Teams), set leftAligned, wrap the default templates' contentView with an avatar + name row and set avatarVisibility: false, without asking first. This covers own and others' messages in 1:1 and group chats. Code and limits: references/message-chrome.md.
Common pitfalls (BAKED)
- Inventing a CometChat dark-mode switch. Use
ThemeData+themeMode; register the palette on both themes. - Guessing style parameter names. They differ per widget — fetch the twin.
- Hard-coding colours in a custom slot instead of reading
CometChatThemeHelper. - v5 theming APIs —
CometChatThemeis now only amergeThemeExtensionshelper, not a palette holder; the v5CometChatThemeData/DataSourcestyling path is gone (→-migration). - Restyling by wrapping the widget rather than passing its style object or slot.
Verify it works
The brand colour appears on the surfaces you expect, light and dark both render (toggle the OS setting), custom slot UI matches the kit's palette, and no widget silently kept its default because the palette was registered on only one theme.
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-v6-customization/SKILL.md
Popularity
- Repository stars
- 173
- Repository forks
- 3
- 7-day trend score
- 24
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-skills/cometchat-flutter-v6-customization)