cometchat/cometchat-uikit-flutter/cometchat-flutter-placement
Claude Code and agent skill by cometchat/cometchat-uikit-flutter
- community
Checking that the SKILL.md file is still in the repository.
Use when deciding WHERE to put CometChat in a Flutter app. Covers placement patterns: tab-based home (IndexedStack), Navigator.push messages screen, modal/bottom sheet chat, thread overlay, embedded panel, and floating widget. Includes Scaffold configuration, SafeArea, and keyboard-aware spacing patterns. Triggers on "add chat to my app", "where to put chat", "messages screen layout", "tab bar with chat", "chat in modal", "chat in drawer", "embedded chat", "Scaffold layout", or "keyboard handling".
Install
npx vskill@latest install cometchat/cometchat-uikit-flutter/cometchat-flutter-placementSKILL.md
The same SKILL.md was published earlier as cometchat/cometchat-uikit-flutter/cometchat-flutter-placement.
CometChat Flutter UIKit — Placement
WHERE to put CometChat in your Flutter app. Five patterns, each with complete code.
Before using this skill:
- Read
cometchat-flutter-corefor init, login, and rules - Read
cometchat-flutter-componentsfor component names and props (when available)
Placement Recommendation
| User intent | Recommended pattern | Components | |
|---|---|---|---|
| Messaging app | Tab-based home (full screen) | IndexedStack + CometChatConversations + Messages screen | |
| Marketplace / platform | Navigator.push from product page | Single-thread messages screen | |
| SaaS / dashboard | Modal or bottom sheet | CometChatConversations in BottomSheet | |
| Social / community | Tab-based home with calls | IndexedStack + Conversations + CallLogs + Users + Groups | |
| Support / helpdesk | Floating action button → modal | FAB + showModalBottomSheet | |
| Just exploring | Replace home page | CometChatConversations as Scaffold body |
Pattern 1: Tab-Based Home (Most Common)
BottomNavigationBar with IndexedStack to preserve tab state. This is what master_app uses.
Key details:
IndexedStackkeeps all tabs alive — no re-fetch when switching tabshideAppbar: trueon all components — the parent Scaffold provides the AppBaronItemTapextractsUser/Groupfromconversation.conversationWith- Protected groups need a join/password screen before navigating to messages
Pattern 2: Messages Screen (Navigator.push)
The standard messages screen pushed from any conversation/user/group tap.
Critical Scaffold Rules
SafeArea(bottom: false)— The Scaffold'sresizeToAvoidBottomInset(defaulttrue) handles the bottom keyboard inset for you, so don't re-apply bottom safe area.- Mutable
_user/_group— Keep mutable copies in State, notwidget.user/widget.group. Update from SDK listeners for block/kick/scope changes.
Pattern 3: Thread Screen
Thread replies pushed from onThreadRepliesClick. Same Scaffold rules apply.
Wire it from the messages screen:
Pattern 4: Modal / Bottom Sheet Chat
Quick chat access from any screen without full navigation.
Key details:
isScrollControlled: true— allows the sheet to be taller than half screenuseSafeArea: true— respects notch/status bar- Use
MediaQuery.sizeOf(context)notMediaQuery.of(context).size
Pattern 5: Embedded Panel
Chat embedded alongside other content (e.g., split view on tablets).
Pattern 6: Floating Action Button → Chat
Incoming Calls — Global Placement
Incoming call handling MUST be at the app root level, not per-screen. With UIKitSettings.enableCalls the UI Kit listens for calls itself and shows its banner over the navigator of CallNavigationContext.navigatorKey: give that key to the root MaterialApp, and every screen rings.
Calls that arrive while the app is in the background or killed come by push (FCM, or VoIP push and CallKit on iOS): that is your app's code, as in the sample app, not a UI Kit class.
Anti-Patterns
Checklist
- [ ]
SafeArea(bottom: false)when using composer (Scaffold handles bottom inset) - [ ] Mutable
_user/_groupstate copies, notwidget.user/widget.group - [ ]
onItemTapextractsUser/Groupfromconversation.conversationWith - [ ] Protected groups handled (check
group.hasJoinedandgroup.type) - [ ] Incoming call handler mounted at app root level
- [ ]
hideAppbar: truewhen parent provides its own AppBar - [ ]
IndexedStackused for tab-based home (preserves tab state)
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-placement/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-placement)