Architecture
Each component is composed of collaborating layers:Accessing Internal Layers
Components expose their BLoC via constructor parameters:- Dart
Customization Categories
The UI Kit provides seven categories of customization entry points. Each category has a dedicated guide:View Slots
Replace specific regions of a component’s UI (leading view, title, subtitle, trailing view) using builder callbacks.
Styles
Customize visual appearance using ThemeData extensions or component-level style objects.
BLoC & Data
Configure data fetching with RequestBuilders, provide custom BLoC instances, override repositories and datasources.
State Views
Replace the default empty, error, and loading state views with custom widgets.
Text Formatters
Create custom text processors for hashtags, mentions, links, or any pattern using the CometChatTextFormatter API.
Menu & Options
Add, replace, or extend long-press actions and composer attachment options on components.
Message Templates
Customize how messages are rendered using MessageTemplateUtils — the central registry for message templates, options, and formatters.