ThemeData extensions.
Architectural Changes
| Aspect | V5 | V6 |
|---|---|---|
| State Management | GetX | BLoC |
| Composite Widgets | CometChatMessages, CometChatConversationsWithMessages, etc. | Removed — compose individually |
| Data Source | CometChatUIKit.getDataSource() | MessageTemplateUtils |
| Extension Registration | UIKitSettings.extensions | Handled internally |
| Rich Text | Not available | Built-in rich text formatting |
| Code Blocks | Not available | Built-in code block support |
Conversations
New Properties (V6)
| Name | Type | Description |
|---|---|---|
| conversationsBloc | ConversationsBloc? | Provide a custom BLoC instance |
| routeObserver | RouteObserver? | Freeze rebuilds during navigation |
| hideSearch | bool? | Hide the search bar |
| searchReadOnly | bool? | Make search bar read-only |
| onSearchTap | VoidCallback? | Callback when search is tapped |
Removed Properties (from V5)
| Name | Description |
|---|---|
| theme | Replaced by ThemeData extensions |
| errorStateText, emptyStateText, loadingStateText | Use custom state views instead |
| stateCallBack | Use BLoC events instead |
| avatarStyle, statusIndicatorStyle, badgeStyle, receiptStyle, dateStyle | Consolidated into CometChatConversationsStyle |
| hideSeparator | Controlled via style |
| disableTyping | Handled internally |
| deleteConversationDialogStyle | Integrated into main style |
| disableMentions | Handled via text formatters |
Message List
New Properties (V6)
| Name | Type | Description |
|---|---|---|
| messageListBloc | MessageListBloc? | Provide a custom BLoC instance |
| enableConversationStarters | bool | Enable AI conversation starters |
| enableSmartReplies | bool | Enable AI smart replies |
| addTemplate | List<CometChatMessageTemplate>? | Add custom templates to existing ones |
| hideModerationView | bool | Hide moderation view |
Removed Properties (from V5)
| Name | Description |
|---|---|
| theme | Replaced by ThemeData extensions |
| scrollToBottomOnNewMessages | Handled internally |
| timestampAlignment | Controlled via style |
| messageInformationConfiguration | Handled via BLoC |
| reactionListConfiguration, reactionsConfiguration | Simplified |
Message Composer
New Properties (V6)
| Name | Type | Description |
|---|---|---|
| messageComposerBloc | MessageComposerBloc? | Provide a custom BLoC instance |
| hideSendButton | bool? | Hide send button |
| hideAttachmentButton | bool? | Hide attachment button |
| hideStickersButton | bool? | Hide sticker button |
| hideImageAttachmentOption | bool? | Hide image attachment |
| hideVideoAttachmentOption | bool? | Hide video attachment |
| hideAudioAttachmentOption | bool? | Hide audio attachment |
| hideFileAttachmentOption | bool? | Hide file attachment |
| hidePollsOption | bool? | Hide polls option |
| hideCollaborativeDocumentOption | bool? | Hide collaborative document |
| hideCollaborativeWhiteboardOption | bool? | Hide collaborative whiteboard |
| hideTakePhotoOption | bool? | Hide take photo option |
Removed Properties (from V5)
| Name | Description |
|---|---|
| theme | Replaced by ThemeData extensions |
| hideLiveReaction, liveReactionIcon, liveReactionIconURL | Feature removed |
| mediaRecorderStyle | Integrated into main style |
Message Header
New Properties (V6)
| Name | Type | Description |
|---|---|---|
| titleView | Widget? Function(Group?, User?, BuildContext)? | Custom title widget |
| leadingStateView | Widget? Function(Group?, User?, BuildContext)? | Custom leading widget |
| auxiliaryButtonView | Widget? Function(Group?, User?, BuildContext)? | Custom auxiliary button |
| hideVideoCallButton | bool? | Hide video call button |
| hideVoiceCallButton | bool? | Hide voice call button |
Removed Properties (from V5)
| Name | Description |
|---|---|
| theme | Replaced by ThemeData extensions |
| avatarStyle, statusIndicatorStyle | Consolidated into CometChatMessageHeaderStyle |
| privateGroupIcon, protectedGroupIcon | Handled via style |
| disableTyping | Handled internally |
Users
New Properties (V6)
| Name | Type | Description |
|---|---|---|
| usersBloc | UsersBloc? | Provide a custom BLoC instance |
| setOptions | Function? | Set long press actions |
| addOptions | Function? | Add to long press actions |
| trailingView | Widget? Function(BuildContext, User)? | Custom trailing widget |
| leadingView | Widget? Function(BuildContext, User)? | Custom leading widget |
| titleView | Widget? Function(BuildContext, User)? | Custom title widget |
Removed Properties (from V5)
| Name | Description |
|---|---|
| theme | Replaced by ThemeData extensions |
| listItemStyle, avatarStyle, statusIndicatorStyle | Consolidated into CometChatUsersStyle |
| options | Replaced by setOptions/addOptions |
Groups
New Properties (V6)
| Name | Type | Description |
|---|---|---|
| groupsBloc | GroupsBloc? | Provide a custom BLoC instance |
| groupTypeVisibility | bool | Hide group type icon |
| setOptions | Function? | Set long press actions |
| addOptions | Function? | Add to long press actions |
| trailingView | Widget? Function(BuildContext, Group)? | Custom trailing widget |
| leadingView | Widget? Function(BuildContext, Group)? | Custom leading widget |
| titleView | Widget? Function(BuildContext, Group)? | Custom title widget |
Removed Properties (from V5)
| Name | Description |
|---|---|
| theme | Replaced by ThemeData extensions |
| listItemStyle, avatarStyle, statusIndicatorStyle | Consolidated into CometChatGroupsStyle |
| options | Replaced by setOptions/addOptions |
Group Members
New Properties (V6)
| Name | Type | Description |
|---|---|---|
| hideKickMemberOption | bool? | Control kick member visibility |
| hideBanMemberOption | bool? | Control ban member visibility |
| hideScopeChangeOption | bool? | Control scope change visibility |
| usersStatusVisibility | bool | Control status indicator visibility |
Renamed Properties
| V5 Name | V6 Name | Description |
|---|---|---|
| tailView | trailingView | Custom trailing widget |
| disableUsersPresence | usersStatusVisibility | Inverted logic |
| groupMemberStyle | style | Type changed to CometChatGroupMembersStyle |