Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2208,6 +2208,7 @@
"ui-kit/flutter/component-styling",
"ui-kit/flutter/message-bubble-styling",
"ui-kit/flutter/localize",
"ui-kit/flutter/rtl-support",
"ui-kit/flutter/sound-manager"
]
},
Expand Down
20 changes: 19 additions & 1 deletion ui-kit/flutter/call-buttons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| View slots | `callSettingsBuilder` |
| Styling | `callButtonsStyle` — the app `ThemeData` does not reach inside a kit widget, so scope colours here. |
| Prerequisites | `CometChatUIKit` initialised and a user logged in. |
| Full props | [11 props](#functionality) |
| Full props | [12 props](#functionality) |

</Accordion>

Expand Down Expand Up @@ -60,7 +60,7 @@

### Actions

##### onError

Check warning on line 63 in ui-kit/flutter/call-buttons.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'onError' looks like code; format it as code.

<Tabs>
<Tab title="Dart">
Expand Down Expand Up @@ -115,6 +115,23 @@

***

## Layout Direction

`CometChatCallButtons` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatCallButtons(
user: user,
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

***

## Customization

### Style
Expand Down Expand Up @@ -148,3 +165,4 @@
| Video Call Icon | Custom video call icon | `videoCallIcon: Icon?` |
| Voice Call Icon | Custom voice call icon | `voiceCallIcon: Icon?` |
| Outgoing Call Configuration | Configure outgoing call | `outgoingCallConfiguration: CometChatOutgoingCallConfiguration?` |
| Layout Direction | Layout direction for the buttons: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support) | `layoutDirection: CometChatLayoutDirection?` |
19 changes: 18 additions & 1 deletion ui-kit/flutter/call-logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
| Styling | `callLogsStyle` — the app `ThemeData` does not reach inside a kit widget, so scope colours here. |
| Layout | Fills its parent — place it in an `Expanded` (or a sized box) inside a `Column`, or layout throws an unbounded-height error at render. |
| Prerequisites | `CometChatUIKit` initialised and a user logged in. |
| Full props | [33 props](#functionality) |
| Full props | [34 props](#functionality) |

</Accordion>

Expand Down Expand Up @@ -100,7 +100,7 @@
</Tab>
</Tabs>

Prerequisites: CometChat SDK initialized with `CometChatUIKit.init()`, a user logged in, and the Calls UIKit dependency added. See [Call Features](/ui-kit/flutter/call-features) for setup.

Check warning on line 103 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'UIKit'?

---

Expand Down Expand Up @@ -277,16 +277,16 @@

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| `listItemView` | `Widget? Function(CallLog callLog, BuildContext context)?` | `null` | `listItemView` set custom view for each callLog |

Check warning on line 280 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `subTitleView` | `Widget? Function(CallLog callLog, BuildContext context)?` | `null` | `subTitleView` set custom sub title view for each callLog |

Check warning on line 281 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `backButton` | `Widget?` | `null` | Custom back button widget |
| `emptyStateView` | `WidgetBuilder?` | `null` | `emptyStateView` returns view fow empty state |

Check warning on line 283 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `errorStateView` | `WidgetBuilder?` | `null` | `errorStateView` returns view fow error state |

Check warning on line 284 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `loadingStateView` | `WidgetBuilder?` | `null` | `loadingStateView` returns view fow loading state |

Check warning on line 285 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `onItemClick` | `Function(CallLog callLog)?` | `null` | `onItemClick` callback triggered on clicking of the callLog item |

Check warning on line 286 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `onError` | `OnError?` | `null` | `onError` callback triggered in case any error happens when fetching callLogs |

Check warning on line 287 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLogs' looks like code; format it as code.
| `onBack` | `VoidCallback?` | `null` | `onBack` callback triggered on closing this screen |
| `trailingView` | `Function(BuildContext context, CallLog callLog)?` | `null` | `trailingView` a custom widget for the tail section of the callLog list item |

Check warning on line 289 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `callLogsBuilderProtocol` | `CallLogsBuilderProtocol?` | `null` | `callLogsBuilderProtocol` set custom call Log request builder protocol |
| `datePattern` | `String?` | `null` | Format pattern for date display |
| `dateSeparatorPattern` | `String?` | `null` | Format pattern for date separator |
Expand All @@ -300,16 +300,17 @@
| `missedCallIcon` | `Widget?` | `null` | `missedCallIcon` custom missed call icon |
| `hideAppbar` | `bool?` | `false` | Toggle app bar visibility |
| `appBarOptions` | `List<Widget>?` | `null` | `appBarOptions` list of options to be visible in app bar |
| `onCallLogIconClicked` | `Function(CallLog callLog)?` | `null` | `onCallLogIconClicked` callback triggered on clicking of the callLog icon audio/video icon |

Check warning on line 303 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `onItemLongPress` | `Function(CallLog callLog)?` | `null` | `onItemLongPress` callback triggered on long pressing of the callLog item |

Check warning on line 304 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `addOptions` | `List<CometChatOption>? Function( CallLog callLog, CallLogsBloc bloc, BuildContext context, )?` | `null` | `addOptions` adds into the current List of actions available on the long press of list item |
| `setOptions` | `List<CometChatOption>? Function( CallLog callLog, CallLogsBloc bloc, BuildContext context, )?` | `null` | `setOptions` sets List of actions available on the long press of list item |
| `onEmpty` | `OnEmpty?` | `null` | `onEmpty` callback triggered when the list is empty |
| `onLoad` | `OnLoad<CallLog>?` | `null` | `onLoad` callback triggered when list is fetched and load |
| `leadingStateView` | `Widget? Function(BuildContext, CallLog)?` | `null` | `leadingStateView` to set leading view for each callLog |

Check warning on line 309 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `titleView` | `Widget? Function(BuildContext, CallLog)?` | `null` | `titleView` to set title view for each callLog |

Check warning on line 310 in ui-kit/flutter/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'callLog' looks like code; format it as code.
| `showBackButton` | `bool?` | `null` | Toggle back button visibility |
| `callLogsBloc` | `CallLogsBloc?` | `null` | `callLogsBloc` Optional external CallLogsBloc instance. |
| `layoutDirection` | `CometChatLayoutDirection?` | `null` | Layout direction for this component and everything inside it: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support). |

**Example — custom back button:**

Expand Down Expand Up @@ -593,6 +594,22 @@

---

## Layout Direction

`CometChatCallLogs` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatCallLogs` and everything inside it. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatCallLogs(
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

---

## Style

<Tabs>
Expand Down
17 changes: 17 additions & 0 deletions ui-kit/flutter/conversations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@
| `title` | `String?` | `null` | Custom app bar title |
| `conversationsRequestBuilder` | `ConversationsRequestBuilder?` | `null` | `conversationsRequestBuilder` Request builder to fetch conversations. |
| `hideError` | `bool?` | `null` | `hideError` toggle visibility of error dialog |
| `emptyStateView` | `WidgetBuilder?` | `null` | `emptyStateView` returns view fow empty state |

Check warning on line 295 in ui-kit/flutter/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `errorStateView` | `WidgetBuilder?` | `null` | `errorStateView` returns view fow error state |

Check warning on line 296 in ui-kit/flutter/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `listItemStyle` | `ListItemStyle?` | `null` | `listItemStyle` style for every list item |
| `trailingView` | `Widget? Function(Conversation conversation)?` | `null` | `trailingView` to set tailView for each conversation |

Check warning on line 298 in ui-kit/flutter/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'tailView' looks like code; format it as code.
| `appBarOptions` | `List<Widget>?` | `null` | `appBarOptions` list of options to be visible in app bar |
| `usersStatusVisibility` | `bool?` | `true` | Show online/offline status indicator |
| `receiptsVisibility` | `bool?` | `true` | Show message receipts |
Expand Down Expand Up @@ -334,7 +334,7 @@
| `groupTypeVisibility` | `bool?` | `true` | Show group type icon on avatar |
| `setOptions` | `List<CometChatOption>? Function( Conversation conversation, ConversationsBloc bloc, BuildContext context, )?` | `null` | `setOptions` sets List of actions available on the long press of list item |
| `addOptions` | `List<CometChatOption>? Function( Conversation conversation, ConversationsBloc bloc, BuildContext context, )?` | `null` | `addOptions` adds into the current List of actions available on the long press of list item |
| `loadingStateView` | `WidgetBuilder?` | `null` | `loadingStateView` returns view fow loading state |

Check warning on line 337 in ui-kit/flutter/conversations.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `leadingView` | `Widget? Function(BuildContext context, Conversation conversation)?` | `null` | `leadingView` to set leading view for each conversation |
| `titleView` | `Widget? Function(BuildContext context, Conversation conversation)?` | `null` | `titleView` to set title view for each conversation |
| `controllerTag` | `String?` | `null` | `controllerTag` tag to create from , if this is passed its parent responsibility to close this |
Expand All @@ -353,6 +353,7 @@
| `searchBoxIcon` | `Widget?` | `null` | `searchBoxIcon` search box prefix icon |
| `searchPadding` | `EdgeInsetsGeometry?` | `null` | `searchPadding` provides padding to the search |
| `searchContentPadding` | `EdgeInsetsGeometry?` | `null` | `searchContentPadding` provides padding to the search content |
| `layoutDirection` | `CometChatLayoutDirection?` | `null` | Layout direction for this component and everything inside it: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support). |

---

Expand Down Expand Up @@ -685,6 +686,22 @@

---

## Layout Direction

`CometChatConversations` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatConversations` and everything inside it. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatConversations(
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

---

## Style

<Tabs>
Expand Down
5 changes: 5 additions & 0 deletions ui-kit/flutter/customization-view-slots.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,12 @@ Use individual slot properties (`leadingView`, `titleView`, `subtitleView`, `tra
When you set `bubbleView` on a template, all other template slots (`headerView`, `contentView`, `footerView`, etc.) are ignored since the entire bubble is replaced.
</Warning>

## View Slots in RTL

Views you pass into a slot are placed inside the component's layout direction. Use direction-aware values (`EdgeInsetsDirectional`, `AlignmentDirectional`, `TextAlign.start`) so they mirror with the rest of the component in RTL. See [Custom Views in RTL](/ui-kit/flutter/rtl-support#custom-views-in-rtl).

## Related

- [Message Template](/ui-kit/flutter/message-template) — Full template structure for message bubbles.
- [Customization Overview](/ui-kit/flutter/customization-overview) — See all customization categories.
- [RTL Support](/ui-kit/flutter/rtl-support) — Show components right to left.
20 changes: 19 additions & 1 deletion ui-kit/flutter/group-members.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| Styling | `style` — the app `ThemeData` does not reach inside a kit widget, so scope colours here. |
| Layout | Fills its parent — place it in an `Expanded` (or a sized box) inside a `Column`, or layout throws an unbounded-height error at render. |
| Prerequisites | `CometChatUIKit` initialised and a user logged in. |
| Full props | [45 props](#functionality) |
| Full props | [46 props](#functionality) |

</Accordion>

Expand Down Expand Up @@ -308,7 +308,7 @@
| `groupMembersRequestBuilder` | `GroupMembersRequestBuilder?` | `null` | Request builder used to fetch the group members. |
| `hideError` | `bool?` | `null` | `hideError` toggle visibility of error dialog |
| `loadingStateView` | `WidgetBuilder?` | `null` | `loadingStateView` is a parameter used to show the loading state view in case of loading |
| `emptyStateView` | `WidgetBuilder?` | `null` | `emptyStateView` returns view fow empty state |

Check warning on line 311 in ui-kit/flutter/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `errorStateView` | `WidgetBuilder?` | `null` | `errorStateView` is a parameter used to show the error state view in case of any error |
| `appBarOptions` | `List<Widget>?` | `null` | `appBarOptions` list of options to be visible in app bar |
| `options` | `List<CometChatOption>? Function( Group group, GroupMember member, CometChatGroupMembersController controller, BuildContext context, )?` | `null` | Legacy options callback — kept for backward compatibility. |
Expand All @@ -323,9 +323,9 @@
| `activateSelection` | `ActivateSelection?` | `null` | `activateSelection` lets the widget know if groups are allowed to be selected |
| `height` | `double?` | `null` | `height` provides height to the widget |
| `width` | `double?` | `null` | `width` provides width to the widget |
| `controllerTag` | `String?` | `null` | Group tag to create from, if this is passed its parent responsibility to close this @deprecated Use groupsBloc parameter for external bloc injection |

Check warning on line 326 in ui-kit/flutter/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'groupsBloc' looks like code; format it as code.
| `hideAppbar` | `bool?` | `null` | Toggle app bar visibility |
| `searchKeyword` | `String?` | `null` | `searchKeyword` Used to set searchKeyword to fetch initial list with |

Check warning on line 328 in ui-kit/flutter/group-members.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'searchKeyword' looks like code; format it as code.
| `onLoad` | `OnLoad<GroupMember>?` | `null` | Called once the first page of group members has loaded. |
| `onEmpty` | `OnEmpty?` | `null` | Called when the group member list resolves with no results. |
| `setOptions` | `List<CometChatOption>? Function( Group group, GroupMember groupMember, CometChatGroupMembersController controller, BuildContext context, )?` | `null` | Replaces the actions offered on a group member row. |
Expand All @@ -336,6 +336,7 @@
| `hideKickMemberOption` | `bool?` | `null` | Hide kick option in action menu |
| `hideScopeChangeOption` | `bool?` | `null` | Hide scope change option |
| `usersStatusVisibility` | `bool?` | `true` | Show online/offline status |
| `layoutDirection` | `CometChatLayoutDirection?` | `null` | Layout direction for this component and everything inside it: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support). |

---

Expand Down Expand Up @@ -543,6 +544,23 @@

---

## Layout Direction

`CometChatGroupMembers` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatGroupMembers` and everything inside it. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatGroupMembers(
group: group,
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

---

## Style

<Tabs>
Expand Down
19 changes: 18 additions & 1 deletion ui-kit/flutter/groups.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| Styling | `groupsStyle` — the app `ThemeData` does not reach inside a kit widget, so scope colours here. |
| Layout | Fills its parent — place it in an `Expanded` (or a sized box) inside a `Column`, or layout throws an unbounded-height error at render. |
| Prerequisites | `CometChatUIKit` initialised and a user logged in. |
| Full props | [41 props](#functionality) |
| Full props | [42 props](#functionality) |

</Accordion>

Expand Down Expand Up @@ -247,7 +247,7 @@
| Property | Type | Default | Description |
| --- | --- | --- | --- |
| `groupsBloc` | `GroupsBloc?` | `null` | `groupsBloc` Optional external GroupsBloc instance. |
| `groupsProtocol` | `GroupsBuilderProtocol?` | `null` | `groupsProtocol` set custom groups request builder protocol @deprecated Use groupsBloc for custom implementations |

Check warning on line 250 in ui-kit/flutter/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'groupsBloc' looks like code; format it as code.
| `subtitleView` | `Widget? Function(BuildContext context, Group group)?` | `null` | `subtitleView` to set subtitle for each group |
| `listItemView` | `Widget Function(Group group)?` | `null` | `listItemView` set custom view for each group |
| `groupsStyle` | `CometChatGroupsStyle?` | `null` | `groupsStyle` sets style |
Expand All @@ -260,7 +260,7 @@
| `selectionMode` | `SelectionMode?` | `null` | Enable selection mode (`single` or `multiple`) |
| `onSelection` | `Function(List<Group>?)?` | `null` | `onSelection` function will be performed |
| `title` | `String?` | `null` | Custom app bar title |
| `groupsRequestBuilder` | `GroupsRequestBuilder?` | `null` | `groupsRequestBuilder` custom request builder @deprecated Use groupsBloc for custom implementations |

Check warning on line 263 in ui-kit/flutter/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'groupsBloc' looks like code; format it as code.
| `hideError` | `bool?` | `null` | `hideError` toggle visibility of error dialog |
| `loadingStateView` | `WidgetBuilder?` | `null` | `loadingStateView` returns view for loading state |
| `emptyStateView` | `WidgetBuilder?` | `null` | `emptyStateView` returns view for empty state |
Expand All @@ -275,10 +275,10 @@
| `onError` | `OnError?` | `null` | `onError` callback triggered on error |
| `submitIcon` | `Widget?` | `null` | `submitIcon` will override the default submit icon |
| `hideAppbar` | `bool?` | `false` | Toggle app bar visibility |
| `controllerTag` | `String?` | `null` | Group tag to create from, if this is passed its parent responsibility to close this @deprecated Use groupsBloc parameter for external bloc injection |

Check warning on line 278 in ui-kit/flutter/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'groupsBloc' looks like code; format it as code.
| `height` | `double?` | `null` | `height` provides height to the widget |
| `width` | `double?` | `null` | `width` provides width to the widget |
| `searchKeyword` | `String?` | `null` | `searchKeyword` Used to set searchKeyword to fetch initial list with |

Check warning on line 281 in ui-kit/flutter/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'searchKeyword' looks like code; format it as code.
| `onLoad` | `OnLoad<Group>?` | `null` | `onLoad` callback triggered when list is fetched and load |
| `onEmpty` | `OnEmpty?` | `null` | `onEmpty` callback triggered when the list is empty |
| `groupTypeVisibility` | `bool?` | `true` | `groupTypeVisibility` Hide the group type icon which is visible on the group icon. |
Expand All @@ -286,7 +286,8 @@
| `addOptions` | `List<CometChatOption>? Function( Group group, GroupsBloc bloc, BuildContext context, )?` | `null` | `addOptions` adds into the current List of actions available on the long press of list item |
| `titleView` | `Widget? Function(BuildContext context, Group group)?` | `null` | `titleView` to set title view for each group |
| `leadingView` | `Widget? Function(BuildContext context, Group group)?` | `null` | `leadingView` to set leading view for each group |
| `trailingView` | `Widget? Function(BuildContext context, Group group)?` | `null` | `trailingView` to set tailView for each group |

Check warning on line 289 in ui-kit/flutter/groups.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'tailView' looks like code; format it as code.
| `layoutDirection` | `CometChatLayoutDirection?` | `null` | Layout direction for this component and everything inside it: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support). |

---

Expand Down Expand Up @@ -484,6 +485,22 @@

---

## Layout Direction

`CometChatGroups` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatGroups` and everything inside it. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatGroups(
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

---

## Style

<Tabs>
Expand Down
7 changes: 7 additions & 0 deletions ui-kit/flutter/llms-flutter-v6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ Widgets render through Flutter's own tree. Non-negotiables:
rather than through `CometChatMessageComposer` never reaches an already-mounted
`CometChatMessageList` — it only appears on that list's next fetch. Emit
`CometChatMessageEvents.ccMessageSent(...)` in `onSuccess`. See [Events](/ui-kit/flutter/events).
- **RTL is `layoutDirection`, and it covers only the kit.** The default, `auto`, follows the
app's direction, so an Arabic locale is right to left with no extra code. `UIKitSettingsBuilder
..layoutDirection` sets it for every kit component; a component's own `layoutDirection:` wins
for that component. The kit never changes the app's own screens, and wrapping a kit widget in
`Directionality` is ignored while the global setting is `ltr` or `rtl`. See
[RTL Support](/ui-kit/flutter/rtl-support).

## Hot path — usually no fetch needed
For a plain "add chat" the install, `init → login → render`, and the core drop-in props are
Expand All @@ -84,6 +90,7 @@ components, theming tokens, or feature enablement.
- [Events](/ui-kit/flutter/events)
- [Sound Manager](/ui-kit/flutter/sound-manager)
- [Localize](/ui-kit/flutter/localize)
- [RTL Support](/ui-kit/flutter/rtl-support)
- [Extensions](/ui-kit/flutter/extensions)
- [Troubleshooting](/ui-kit/flutter/troubleshooting)

Expand Down
4 changes: 4 additions & 0 deletions ui-kit/flutter/localize.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@

The UI Kit supports 19 languages:

* Arabic (ar), German (de), English (en, en-GB), Spanish (es), French (fr), Hindi (hi), Hungarian (hu), Japanese (ja), Korean (ko), Lithuanian (lt), Malay (ms), Dutch (nl), Portuguese (pt), Russian (ru), Swedish (sv), Turkish (tr), Chinese (zh, zh-TW)

Check warning on line 23 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'hu'?

Check warning on line 23 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'ko'?

Check warning on line 23 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'lt'?

Check warning on line 23 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'nl'?

Check warning on line 23 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'ru'?

Check warning on line 23 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'sv'?

Check warning on line 23 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'zh'?

<Note>
Language and layout direction are separate settings. With an Arabic locale the UI Kit is right to left by default. To set the direction yourself, see [RTL Support](/ui-kit/flutter/rtl-support).
</Note>

## Usage

### Integration
Expand Down Expand Up @@ -81,7 +85,7 @@
</Tab>
</Tabs>

`cc.CometChatLocalize.localizationsDelegates` holds the UI Kit's delegate together with the Material, Cupertino and widgets delegates. If you list delegates yourself, add `cc.CometChatLocalize.delegate`.

Check warning on line 88 in ui-kit/flutter/localize.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Cupertino'?

<Note>
`CometChatLocalize` and `CometChatLocalizations` (available since v6.3.0) replace `Translations`, which is deprecated but keeps working for the rest of the v6 line. `CometChatLocalizations` is the same type as `Translations`, so the two can be mixed while you migrate.
Expand Down
26 changes: 25 additions & 1 deletion ui-kit/flutter/message-composer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
| Sending outside the composer | A message sent with `CometChat.send*Message` instead of through this widget must emit `CometChatMessageEvents.ccMessageSent(...)` in `onSuccess`, or an already-mounted `CometChatMessageList` never shows it. |
| Stitching | Pair with `CometChatMessageHeader` and `CometChatMessageList`, passing the same `user` or `group` to all three. |
| Prerequisites | `CometChatUIKit` initialised and a user logged in. |
| Full props | [76 props](#message-composer-properties) |
| Full props | [77 props](#message-composer-properties) |

</Accordion>

Expand Down Expand Up @@ -110,7 +110,7 @@

***

##### 2. onChange

Check warning on line 113 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'onChange' looks like code; format it as code.

Handles changes in the value of text in the input field.

Expand All @@ -129,7 +129,7 @@

***

##### 3. onError

Check warning on line 132 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'onError' looks like code; format it as code.

Listens for any errors that occur.

Expand Down Expand Up @@ -288,13 +288,14 @@
| `onKeyboardDiagnostics` | `CometChatKeyboardDiagnosticsCallback?` | `null` | Debug hook fired on every internal keyboard-state change. Leave `null` in production. |
| `enableMultipleAttachments` | `bool` | `true` | `enableMultipleAttachments` when true (the default) the composer owns a multi-attachment staging tray: picked files upload immediately, stage as tray tiles, and send as one message per… |
| `attachmentTrayController` | `AttachmentTrayController?` | `null` | Optional external staging tray controller. |
| `onAttachmentTrayAdd` | `VoidCallback?` | `null` | Invoked by the tray's Add affordance when `attachmentTrayController` is set. |

Check warning on line 291 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'affordance'?
| `onAttachmentTraySend` | `VoidCallback?` | `null` | Invoked by the tray's Send affordance (shown only when the tray can send). |

Check warning on line 292 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'affordance'?
| `disableImagePaste` | `bool` | `false` | `disableImagePaste` disables staging an image pasted from the clipboard (context-menu Paste, Cmd/Ctrl+V, and the web paste event). |
| `disableDragAndDrop` | `bool` | `false` | `disableDragAndDrop` disables staging files dragged onto the chat and the "drop files here" overlay (web only). |
| `attachmentErrorAlertStyle` | `CometChatAttachmentErrorAlertStyle?` | `null` | `attachmentErrorAlertStyle` styles every attachment error alert: the toast shown when a selection is over the count/size limit, and the alert stating why a staged attachment was rejected… |
| `attachmentErrorSnackBarBuilder` | `SnackBar Function(BuildContext context, AttachmentTile tile)?` | `null` | `attachmentErrorSnackBarBuilder` fully replaces the default error snackbar. |

Check warning on line 296 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'snackbar'?
| `onAttachmentErrorTap` | `void Function(BuildContext context, AttachmentTile tile)?` | `null` | `onAttachmentErrorTap` fully overrides the tap/hover action on an errored tile (skips showing the default/custom snackbar entirely). |

Check warning on line 297 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'snackbar'?
| `layoutDirection` | `CometChatLayoutDirection?` | `null` | Layout direction for this component and everything inside it: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support). |

***

Expand Down Expand Up @@ -399,6 +400,29 @@

***

## Layout Direction

`CometChatMessageComposer` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatMessageComposer` and everything inside it. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatMessageComposer(
user: user,
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

The text field follows the line the cursor is on: an Arabic line makes it right to left, an English line left to right, and an empty field starts at the screen's start side. On iOS, the keyboard's language decides while typing.

<Warning>
Flutter's text field uses one direction for all of its lines. When a message mixes Arabic and English lines, all of them sit on one side while you type. Once the message is sent, its bubble places each line on its own side.
</Warning>

***

## Rich Text Formatting

The composer ships with a WYSIWYG rich-text toolbar that parses Markdown as the user types and renders formatted spans in place. Configuration is done with three flat props.
Expand Down Expand Up @@ -682,8 +706,8 @@
| `disableImagePaste` | `bool` | Turns off clipboard paste. Defaults to `false`. |
| `disableDragAndDrop` | `bool` | Turns off drag-and-drop on web. Defaults to `false`. |
| `errorAlertStyle` | `CometChatErrorAlertStyle?` | Styles the over-limit toast. |
| `attachmentErrorSnackBarStyle` | `CometChatAttachmentErrorSnackBarStyle?` | Styles the error-tile snackbar. |

Check warning on line 709 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'snackbar'?
| `attachmentErrorSnackBarBuilder` | `Widget Function(BuildContext, AttachmentTile)?` | Replaces the error snackbar. |

Check warning on line 710 in ui-kit/flutter/message-composer.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'snackbar'?
| `onAttachmentErrorTap` | `Function(AttachmentTile)?` | Called when an error tile is tapped. |

For the upload API underneath the tray, see [Upload Files & Send Attachments](/sdk/flutter/upload-files).
Expand Down
20 changes: 19 additions & 1 deletion ui-kit/flutter/message-header.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
| Styling | `messageHeaderStyle` — the app `ThemeData` does not reach inside a kit widget, so scope colours here. |
| Stitching | Pair with `CometChatMessageList` and `CometChatMessageComposer`, passing the same `user` or `group` to all three. |
| Prerequisites | `CometChatUIKit` initialised and a user logged in. |
| Full props | [37 props](#functionality) |
| Full props | [38 props](#functionality) |

</Accordion>

Expand Down Expand Up @@ -145,8 +145,8 @@
| `messageHeaderStyle` | `CometChatMessageHeaderStyle?` | `null` | `CometChatMessageHeaderStyle` set styling props for message header |
| `group` | `Group?` | `null` | Group object for group chat header |
| `user` | `User?` | `null` | User object for 1:1 chat header |
| `trailingView` | `List<Widget>? Function(User? user, Group? group, BuildContext context)?` | `null` | `trailingView` set appbar options |

Check warning on line 148 in ui-kit/flutter/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'appbar'?
| `listItemView` | `Widget Function(Group? group, User? user, BuildContext context)?` | `null` | `listItemView` set custom view for listItem |

Check warning on line 149 in ui-kit/flutter/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'listItem' looks like code; format it as code.
| `showBackButton` | `bool?` | `true` | Toggle back button visibility |
| `subtitleView` | `Widget? Function(Group? group, User? user, BuildContext context)?` | `null` | `subtitleView` to set subtitle view |
| `listItemStyle` | `ListItemStyle?` | `null` | `listItemStyle` style for every list item |
Expand All @@ -166,18 +166,19 @@
| `padding` | `EdgeInsetsGeometry?` | `null` | `padding` set padding for message header |
| `hideVideoCallButton` | `bool?` | `null` | `hideVideoCallButton` is a `bool` that can be used to hide/display video call button |
| `hideVoiceCallButton` | `bool?` | `null` | `hideVoiceCallButton` is a `bool` that can be used to hide/display voice call button |
| `titleView` | `Widget? Function(Group? group, User? user, BuildContext context)?` | `null` | `titleView` to set to set titleView view |

Check warning on line 169 in ui-kit/flutter/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'titleView' looks like code; format it as code.
| `leadingStateView` | `Widget? Function(Group? group, User? user, BuildContext context)?` | `null` | `leadingStateView` to set leading View |
| `auxiliaryButtonView` | `Widget? Function(Group? group, User? user, BuildContext context)?` | `null` | `auxiliaryButtonView` to set auxiliary view |
| `usersStatusVisibility` | `bool?` | `true` | `usersStatusVisibility` controls visibility of status indicator shown if a user is online |
| `dateTimeFormatterCallback` | `DateTimeFormatterCallback?` | `null` | `dateTimeFormatterCallback` is a callback that can be used to format the date and time |
| `hideNewChatButton` | `bool?` | `null` | `hideNewChatButton` is a `bool` that can be used to hide/display chat button button |

Check warning on line 174 in ui-kit/flutter/message-header.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Repetition

'button' is repeated!
| `hideChatHistoryButton` | `bool?` | `null` | `hideChatHistoryButton` is a `bool` that can be used to hide/display chat history button |
| `chatHistoryButtonClick` | `VoidCallback?` | `null` | `chatHistoryButtonClick` callback triggered on chat history button click |
| `newChatButtonClick` | `VoidCallback?` | `null` | `newChatButtonClick` callback triggered on new chat button click |
| `newChatIcon` | `IconData?` | `null` | `newChatIcon` provides new chat icon |
| `chatHistoryIcon` | `IconData?` | `null` | `chatHistoryIcon` provides chat history icon |
| `messageHeaderBloc` | `MessageHeaderBloc?` | `null` | Your own bloc, used instead of the one the header creates. The header does not close it on dispose. See [BLoC Access](#bloc-access). *Available since v6.2.0.* |
| `layoutDirection` | `CometChatLayoutDirection?` | `null` | Layout direction for this component and everything inside it: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support). |

---

Expand Down Expand Up @@ -401,6 +402,23 @@

---

## Layout Direction

`CometChatMessageHeader` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatMessageHeader` and everything inside it. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatMessageHeader(
user: user,
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

---

## Style

<Tabs>
Expand Down
18 changes: 18 additions & 0 deletions ui-kit/flutter/message-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@
| `onMessagesDelivered` / `onMessagesRead` | Updates receipt status via ValueNotifier |
| `onTypingStarted` / `onTypingEnded` | Updates typing indicator |
| `onMessageReactionAdded` / `onMessageReactionRemoved` | Updates reaction counts |
| `onMessagePinned` / `onMessageUnpinned` | Restamps the message's pin state in place |

Check warning on line 231 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Restamps'?
| `onMessageSaved` / `onMessageUnsaved` | Restamps the message's saved state (the logged-in user's devices only) |

Check warning on line 232 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Restamps'?
| Connection reconnected | Triggers silent sync to fetch missed messages |

---
Expand All @@ -253,7 +253,7 @@
| `headerView` | `HeaderFooterBuilder?` | `null` | Custom header view displayed above the message list. **Validates: Requirements 13.2** |
| `footerView` | `HeaderFooterBuilder?` | `null` | Custom footer view displayed below the message list. **Validates: Requirements 13.2** |
| `loadingStateView` | `WidgetBuilder?` | `null` | `loadingStateView` is a parameter used to show the loading state view in case of loading |
| `emptyStateView` | `WidgetBuilder?` | `null` | `emptyStateView` returns view fow empty state |

Check warning on line 256 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'fow'?
| `errorStateView` | `WidgetBuilder?` | `null` | `errorStateView` is a parameter used to show the error state view in case of any error |
| `emptyChatGreetingView` | `WidgetBuilder?` | `null` | View shown in an empty conversation, in place of the generic empty state. |
| `style` | `CometChatMessageListStyle?` | `null` | Style configuration for the message list. |
Expand All @@ -266,10 +266,10 @@
| `controller` | `CometChatMessageListController?` | `null` | Lets the host jump the list to a message after it has mounted. See [Jump to a message](#jump-to-a-message). *Available since v6.1.1.* |
| `customSoundForMessages` | `String?` | `null` | `customSoundForMessages` set custom sound for messages |
| `customSoundForMessagePackage` | `String?` | `null` | `customSoundForMessagePackage` package name to show icon from |
| `readIcon` | `Widget?` | `null` | `readIcon` widget visible when readAt != null in `BaseMessage`. If blank will load default readIcon |

Check warning on line 269 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'readAt' looks like code; format it as code.

Check warning on line 269 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'readIcon' looks like code; format it as code.
| `deliveredIcon` | `Widget?` | `null` | `deliveredIcon` widget visible while deliveredAt != null in `BaseMessage`. If blank will load default deliveredIcon |

Check warning on line 270 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'deliveredAt' looks like code; format it as code.

Check warning on line 270 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'deliveredIcon' looks like code; format it as code.
| `sentIcon` | `Widget?` | `null` | `sentIcon` widget visible while sentAt != null and deliveredAt is null in `BaseMessage`. If blank will load default sentIcon |

Check warning on line 271 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'sentAt' looks like code; format it as code.

Check warning on line 271 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'deliveredAt' looks like code; format it as code.

Check warning on line 271 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'sentIcon' looks like code; format it as code.
| `waitIcon` | `Widget?` | `null` | `waitIcon` widget visible while sentAt and deliveredAt is null in `BaseMessage`. If blank will load default waitIcon |

Check warning on line 272 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'sentAt' looks like code; format it as code.

Check warning on line 272 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'deliveredAt' looks like code; format it as code.

Check warning on line 272 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'waitIcon' looks like code; format it as code.
| `avatarVisibility` | `bool?` | `true` | Toggle avatar visibility |
| `enableMultipleAttachments` | `bool` | `true` | Render multi-attachment media messages as grouped per-type bubbles. See [Multiple Attachments](#multiple-attachments) |
| `hideTimestamp` | `bool?` | `null` | Toggle timestamp visibility |
Expand All @@ -283,7 +283,7 @@
| `receiptsVisibility` | `bool?` | `true` | Toggle read receipts |
| `disableReactions` | `bool?` | `false` | Toggle reactions |
| `addReactionIcon` | `Widget?` | `null` | `addReactionIcon` sets custom icon for adding reaction |
| `addMoreReactionTap` | `Function(BaseMessage message)?` | `null` | Called when the 'add reaction' affordance is tapped. |

Check warning on line 286 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'affordance'?
| `favoriteReactions` | `List<String>?` | `null` | `favoriteReactions` is a list of frequently used reactions |
| `onReactionClick` | `Function(String? emoji, BaseMessage message)?` | `null` | Called when an existing reaction chip is tapped. |
| `onReactionLongPress` | `Function(String? emoji, BaseMessage message)?` | `null` | Called when an existing reaction chip is long-pressed. |
Expand All @@ -294,8 +294,8 @@
| `disableMentions` | `bool?` | `null` | `disableMentions` disables mentions in the composer |
| `mentionAllLabel` | `String?` | `null` | `mentionAllLabel` is the label to display for @all mention (default: localized "Notify All") |
| `mentionAllLabelId` | `String?` | `null` | `mentionAllLabelId` is the ID for @all mention (default: "all") |
| `padding` | `EdgeInsetsGeometry?` | `null` | `padding` sets the padding for snackBar |

Check warning on line 297 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'snackBar' looks like code; format it as code.
| `margin` | `EdgeInsetsGeometry?` | `null` | `margin` sets the margin for snackBar |

Check warning on line 298 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

'snackBar' looks like code; format it as code.
| `width` | `double?` | `null` | `width` provides width to the widget |
| `height` | `double?` | `null` | `height` provides height to the widget |
| `hideCopyMessageOption` | `bool?` | `false` | `hideCopyMessageOption` This prop defines whether a user can copy message or not. |
Expand All @@ -309,7 +309,7 @@
| `hideReplyOption` | `bool?` | `false` | `hideReplyOption` This prop defines whether the inline Reply option should be visible or not. |
| `hideTranslateMessageOption` | `bool?` | `false` | `hideTranslateMessageOption` This prop defines whether Reply In Thread option should be visible or not. |
| `hideShareMessageOption` | `bool?` | `false` | `hideShareMessageOption` This prop defines whether share option should be visible or not. |
| `hideModerationView` | `bool?` | `null` | When true, hides the moderation affordance on bubbles. |

Check warning on line 312 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'affordance'?
| `hideOfflineNotices` | `bool` | `false` | With [offline support](/ui-kit/flutter/offline-support#hide-the-offline-notices) running, hides the offline notices this list shows, such as **Too many messages waiting to send**. The **Not sent** rows and offline states still show. No effect with offline support off |
| `enableConversationStarters` | `bool?` | `false` | When true, shows AI conversation starters in an empty conversation. |
| `enableSmartReplies` | `bool?` | `false` | When true, shows AI smart replies beneath the list. |
Expand All @@ -325,9 +325,10 @@
| `showMarkAsUnreadOption` | `bool` | `false` | Show "Mark as Unread" in long-press options |
| `startFromUnreadMessages` | `bool` | `false` | Scroll to first unread on open |
| `hideFlagOption` | `bool` | `false` | Hide the Flag/Report option from message long-press actions |
| `flagReasonLocalizer` | `String Function(String reasonId)?` | `null` | Custom localizer that converts a flag-reason ID into a display string |

Check warning on line 328 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'localizer'?
| `hideFlagRemarkField` | `bool` | `false` | Hide the optional remark/context text field in the flag dialog |
| `loadLastAgentConversation` | `bool` | `false` | Loads the most recent existing agent conversation on start |
| `layoutDirection` | `CometChatLayoutDirection?` | `null` | Layout direction for this component and everything inside it: `ltr` or `rtl`. Overrides the UI Kit's global setting; `null` inherits it. See [RTL Support](/ui-kit/flutter/rtl-support). |

\* One of `user` or `group` is required.

Expand Down Expand Up @@ -545,7 +546,7 @@
| `hidePinMessageOption` | `false` | Hide "Pin message" (shown while the message is unpinned). *Available since v6.1.1.* |
| `hideUnpinMessageOption` | `false` | Hide "Unpin message" (shown while the message is pinned). *Available since v6.1.1.* |
| `hideSaveMessageOption` | `false` | Hide "Save message" (shown while the message is unsaved). *Available since v6.1.1.* |
| `hideUnsaveMessageOption` | `false` | Hide "Unsave message" (shown while the message is saved). *Available since v6.1.1.* |

Check warning on line 549 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Unsave'?
| `hideThreadSubscriptionOption` | `false` | Hide "Subscribe to thread" / "Unsubscribe from thread". Only shown when `UIKitSettings.enableThreadSubscription` is on — see the [Thread Subscription guide](/ui-kit/flutter/guide-thread-subscription). *Available since v6.1.1.* |
| `hideMessagePrivatelyOption` | `false` | Hide "Message Privately" |
| `hideReactionOption` | `false` | Hide "Reaction" |
Expand Down Expand Up @@ -645,7 +646,7 @@

*Available since v6.1.1*

With the features enabled, the action menu offers **Pin message** / **Unpin message** and **Save message** / **Unsave message**, the label following the message's current state. They are wired to the SDK's [Pin A Message](/sdk/flutter/pin-message) and [Save A Message](/sdk/flutter/save-message) APIs — no setup is needed:

Check warning on line 649 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'Unsave'?

- The options appear on any sent, non-deleted message, thread replies included. They are withheld from deleted messages, messages not yet sent or still pending moderation, your own messages that moderation disapproved, and group action messages, and they hide themselves when `CometChat.isPinMessageEnabled()` / `CometChat.isSaveMessageEnabled()` returns `false`.
- **Pin permission is enforced by the server, not the UI Kit.** The Pin / Unpin option is shown to every participant; a user who lacks permission gets a "You don't have permission to perform this action." toast when they tap it. Save has no role gate.
Expand Down Expand Up @@ -780,16 +781,16 @@
| Method | Returns | Description |
| --- | --- | --- |
| `findMessageIndex(messageId)` | `int?` | Find message index by ID |
| `findMessageIndexByMuid(muid)` | `int?` | Find message index by muid (pending messages) |

Check warning on line 784 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'muid'?
| `findMessage(messageId)` | `BaseMessage?` | Get message by ID |
| `findMessageByMuid(muid)` | `BaseMessage?` | Get message by muid |

Check warning on line 786 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'muid'?

#### ValueNotifier Accessors (Isolated Rebuilds)

| Method | Returns | Description |
| --- | --- | --- |
| `getReceiptNotifier(messageId)` | `ValueNotifier<MessageReceiptStatus>` | Per-message receipt status notifier |
| `getReceiptNotifierForMessage(message)` | `ValueNotifier<MessageReceiptStatus>` | Receipt notifier handling both ID and muid |

Check warning on line 793 in ui-kit/flutter/message-list.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

Vale.Spelling

Did you really mean 'muid'?
| `getTypingNotifier(conversationId)` | `ValueNotifier<List<TypingIndicator>>` | Per-conversation typing notifier |
| `getThreadReplyCountNotifier(parentMessageId)` | `ValueNotifier<int>` | Per-message thread reply count notifier |

Expand Down Expand Up @@ -817,6 +818,23 @@

---

## Layout Direction

`CometChatMessageList` follows the UI Kit's layout direction. Pass `layoutDirection` to set it for this component only: it overrides the global setting for `CometChatMessageList` and everything inside it. See [RTL Support](/ui-kit/flutter/rtl-support).

<Tabs>
<Tab title="Dart">
```dart
CometChatMessageList(
user: user,
layoutDirection: CometChatLayoutDirection.rtl,
)
```
</Tab>
</Tabs>

---

## Style

<Tabs>
Expand Down
4 changes: 4 additions & 0 deletions ui-kit/flutter/message-template.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ The MessageBubble structure can be broken down into:
4. Bottom widget — Additional elements like link previews or "load more" buttons
5. Footer widget — Timestamp and delivery/read status

<Note>
`BubbleAlignment` names the side in left-to-right terms: `right` is a message you sent, `left` one you received, and `center` an action message. The names don't change in RTL, so `alignment == BubbleAlignment.right` still means "sent", even though a sent message sits on the left in an RTL layout. Build template views with direction-aware values such as `EdgeInsetsDirectional`, so they mirror with the bubble. See [Custom Views in RTL](/ui-kit/flutter/rtl-support#custom-views-in-rtl).
</Note>

### Properties

| Property | Description |
Expand Down
Loading