Release Notes
Announcements
Conversation List | Conversation Actions |
![]() | ![]() |
Method Name | Parameters | Description |
ConversationList | onConversationClick: (ConversationInfo conversation) {} | Sets the callback for conversation cell clicks. |
| config: ConversationActionConfigProtocol | Initializes the component and configures action menu items (optional). |
| customActions: List | Initializes the component and defines custom action options (optional). |
onConversationClick callback.Parameter Name | Type | Description |
onConversationClick | (ConversationInfo conversation) {} | Callback that is invoked when a conversation cell is selected. |
Expanded(child: ConversationList(onConversationClick: (conversation) {// We recommend navigating to the chat page here},),),
Expanded(child: ConversationList(config: ChatConversationActionConfig(isSupportDelete: true,isSupportPin: true,isSupportClearHistory: false),onConversationClick: (conversation) {// Navigate to chat page on conversation cell click},),),
Action Type | Description |
isSupportDelete | Enable or disable conversation deletion. |
isSupportPin | Enable or disable Pin Conversation. |
isSupportClearHistory | Enable or disable clearing chat history. |
customActions during initialization to append custom actions below the default options.Parameter Name | Type | Description |
customActions | List | Custom actions shown in the conversation action menu. |
Expanded(child: ConversationList(customActions: [ConversationCustomAction(title: 'Share',action: (conversation) {print('Share conversation: ${conversation.title}');})],),),
AppBuilder:// Configure at app startup; if omitted, the feature is not supportedawait AppBuilder.init();AppBuilder.getInstance().conversationListConfig = ConversationListConfig(conversationActionList: [AppBuilder.CONVERSATION_ACTION_DELETE,AppBuilder.CONVERSATION_ACTION_PIN,AppBuilder.CONVERSATION_ACTION_CLEAR_HISTORY],// ... other required properties);// Then, initialize ConversationList. All ConversationList instances will inherit the above action configuration.Expanded(child: ConversationList(onConversationClick: (conversation) {// You can navigate to the chat page here},),),
Conversation Actions (Default Options) | Conversation Actions (Delete Option Hidden) | Conversation Actions (Share Option Added) |
![]() | ![]() | ![]() |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback