The UI Kit Builder for Flutter organizes code into a modular structure with theDocumentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
chat_builder package containing all Builder-specific code. This guide helps you navigate the structure so you know exactly where to make changes.
Root Files
| File | Purpose |
|---|---|
pubspec.yaml | Project dependencies, assets, and font declarations |
lib/main.dart | Main application entry point |
Key Folders
chat_builder/
The Builder module containing all UI Kit Builder functionality.
chat_builder/lib/utils/
Utility classes and helpers.
| File | Purpose |
|---|---|
builder_settings_helper.dart | Loads configuration from JSON and provides access to settings |
app_constants.dart | CometChat APP_ID, AUTH_KEY, REGION |
theme_helper.dart | Helper functions for applying Builder theme |
chat_builder/lib/screens/
UI screens for different features.
chat_builder/lib/widgets/
Reusable UI widgets.
Assets Directory
Static assets including configuration, fonts, and images.Platform Directories
ios/
iOS-specific native code and configuration.
android/
Android-specific native code and configuration.
Quick Reference: Where to Customize
| What you want to change | Where to look |
|---|---|
| Enable/disable features | assets/cometchat-builder-settings.json |
| Access configuration at runtime | chat_builder/lib/utils/builder_settings_helper.dart |
| CometChat credentials | chat_builder/lib/utils/app_constants.dart |
| Theme colors & styles | lib/main.dart (MaterialApp theme) |
| Custom fonts | assets/fonts/, pubspec.yaml |
| Chat UI screens | chat_builder/lib/screens/messages/ |
| Call UI screens | chat_builder/lib/screens/calls/ |
| User management UI | chat_builder/lib/screens/users/ |
| Group management UI | chat_builder/lib/screens/groups/ |
| Reusable widgets | chat_builder/lib/widgets/ |
Prefer using
cometchat-builder-settings.json for feature toggles and the MaterialApp theme for styling. For extensive changes, create new widgets rather than modifying core files directly.pubspec.yaml Configuration
Ensure yourpubspec.yaml includes the Builder module and assets:
Next Steps
UI Kit Builder Settings
Configure feature toggles and behavior.
Customizations
Modify component props, styling, and behavior.
Theming
Customize colors, typography, and styling.
Components
Explore available UI components.