conversationsProtocol | ConversationsBuilderProtocol? | null | conversationsProtocol Request builder protocol to fetch conversations. |
subtitleView | Widget? Function(BuildContext context, Conversation conversation)? | null | subtitleView to set subtitle for each conversation |
listItemView | Widget Function(Conversation conversation)? | null | listItemView set custom view for each conversation |
conversationsStyle | CometChatConversationsStyle | const CometChatConversationsStyle() | conversationsStyle sets style |
scrollController | ScrollController? | null | scrollController to handle scrolling behavior. |
backButton | Widget? | null | backButton back button |
showBackButton | bool | false | Toggle back button |
selectionMode | SelectionMode? | null | Enable selection mode (single or multiple) |
onSelection | Function(List<Conversation>? list)? | null | onSelection function will be performed |
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 |
errorStateView | WidgetBuilder? | null | errorStateView returns view fow error state |
listItemStyle | ListItemStyle? | null | listItemStyle style for every list item |
trailingView | Widget? Function(Conversation conversation)? | null | trailingView to set tailView for each conversation |
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 |
protectedGroupIcon | Widget? | null | protectedGroupIcon provides icon in status indicator for protected group |
privateGroupIcon | Widget? | null | privateGroupIcon provides icon in status indicator for private group |
readIcon | Widget? | null | readIcon provides icon in read receipts if a message is read |
deliveredIcon | Widget? | null | deliveredIcon provides icon in read receipts if a message is delivered |
sentIcon | Widget? | null | sentIcon provides icon in read receipts if a message is sent |
activateSelection | ActivateSelection? | null | activateSelection lets the widget know if conversations are allowed to be selected |
datePattern | String Function(Conversation conversation)? | null | datePattern is used to generate customDateString for CometChatDate |
typingIndicatorText | String? | null | typingIndicatorText if not null is visible instead of default text shown when another user is typing |
onBack | VoidCallback? | null | onBack callback triggered on closing this screen |
onItemTap | Function(Conversation conversation)? | null | onItemTap callback triggered on tapping a conversation item |
onItemLongPress | Function(Conversation conversation)? | null | onItemLongPress callback triggered on pressing for long on a conversation item |
hideAppbar | bool? | false | Toggle app bar visibility |
textFormatters | List<CometChatTextFormatter>? | null | textFormatters is a list of text formatters for message bubbles with type text |
mentionAllLabel | String? | null | mentionAllLabel is a String which is used to set a custom label for @all mentions |
mentionAllLabelId | String? | null | mentionAllLabelId is a String which is used to set a custom label ID for @all mentions |
datePadding | EdgeInsets? | null | datePadding provides padding for CometChatDate |
dateHeight | double? | null | dateHeight provides height for CometChatDate |
dateBackgroundIsTransparent | bool? | null | dateBackgroundIsTransparent controls the background of CometChatDate |
dateWidth | double? | null | dateWidth provides width for CometChatDate |
badgeWidth | double? | null | badgeWidth provides width for CometChatBadge |
badgeHeight | double? | null | badgeHeight provides height for CometChatBadge |
badgePadding | EdgeInsetsGeometry? | null | badgePadding provides padding to the widget |
statusIndicatorWidth | double? | null | statusIndicatorWidth provides width to the status indicator |
statusIndicatorHeight | double? | null | statusIndicatorHeight provides height to the status indicator |
statusIndicatorBorderRadius | BorderRadiusGeometry? | null | statusIndicatorBorderRadius provides borderRadius to the status indicator |
avatarMargin | EdgeInsetsGeometry? | null | avatarMargin provides margin to the widget |
avatarPadding | EdgeInsetsGeometry? | null | avatarPadding provides padding to the widget |
avatarWidth | double? | null | avatarWidth provides width to the widget |
avatarHeight | double? | null | avatarHeight provides height to the widget |
deleteConversationOptionVisibility | bool? | true | Show delete option on long press |
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 |
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 |
onLoad | OnLoad<Conversation>? | null | onLoad callback triggered when conversations are loaded successfully |
onEmpty | OnEmpty? | null | onEmpty callback triggered when the conversations list is empty |
onError | OnError? | null | onError callback triggered when the component encounters an error |
customSoundForMessages | String? | null | Custom notification sound asset path |
disableSoundForMessages | bool? | false | Disable message sounds |
submitIcon | Widget? | null | submitIcon will override the default submit icon |
dateTimeFormatterCallback | DateTimeFormatterCallback? | null | dateTimeFormatterCallback is a callback that can be used to format the date and time |
conversationsBloc | ConversationsBloc? | null | conversationsBloc Optional external ConversationsBloc instance. |
routeObserver | RouteObserver<ModalRoute<void>>? | null | routeObserver Optional RouteObserver to detect when this widget is not visible. |
hideSearch | bool? | null | Toggle search bar |
searchReadOnly | bool | false | Make search bar read-only (tap opens custom search) |
onSearchTap | GestureTapCallback? | null | onSearchTap callback triggered on search box tap |
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 |