tencent cloud

Chat

News and Announcements
Release Notes
Announcements
Product Introduction
Overview
Basic Concepts
Scenarios
Features
Account System
User Profile and Relationship Chain
Message Management
Group Related
Official Account
Audio/Video Call
Use Limits
Purchase Guide
Billing Overview
Pricing
Purchase Instructions
Renewal Guide
Service Suspension Explanation
Refund Policy
Development Guidelines
Demo Zone
Activate Service
Free Demos
Quick Run
Download
SDK and Demo Source Code
Update Log
Chat Interaction (UI Included)
TUIKit Introduction
Getting Started
Full-feature Integration
Single-function Integration
Build with AI
Build Basic Interfaces
More Features
Customizing Appearance
Internationalization
Push Service
Overview
Noun explanation
Activate the Service
Quick Start
Manufacturer Channel
Statistics
Troubleshooting Tool
Client APIs
REST API
Push Callback
Advanced Features
Release Notes
Error Codes
FAQS
Desk
Overview
Quick Start
Integration Guide
Admin Operation Manual
Agent Manual
More Practices
Live Streaming Setup Guide
AI Chatbot
Super Large Entertainment and Collaboration Community
Discord Implementation Guide
How to Integrate Chat into Games
WhatsApp Channel-style Official Account Integration Solution
Send Red Packet
Firewall Restrictions
No UI Integration
Quick Start
SDK Integration
Initialization
Login and Logout
Message
Conversation
Group
Community Topic
User Profile and Relationship Chain
Offline Push
Cloud Search
Local Search
Official Channel Management
Client APIs
JavaScript
Android
iOS & macOS
Swift
Flutter
Electron
Unity
React Native
C APIs
C++
Server APIs
Secure authentication with UserSig
RESTful APIs
Webhooks
Console Guide
New Console Introduction
Creating and Upgrading an Application
Basic Configuration
Feature Configuration
Account Management
Group Management
Official Channel Management
Webhook Configuration
Usage
Viewing Guide for Resource Packages
Real-Time Monitor
Auxiliary Development Tools
Access Management
Advanced Features
FAQs
uni-app FAQs
Purchase
SDK
Account Authentication
User Profile and Relationship Chain
Message
Group
Audio-Video Group
Nickname and Profile Photo
Security Compliance Certification
Service Level Agreement
Security Compliance Certification
Chat Policies
Privacy Policy
Data Privacy and Security Agreement
Migration
Migration Solutions
Migration Solutions Lite
Error Codes
Contact Us

Flutter

PDF
Focus Mode
Font Size
Last updated: 2026-03-02 17:41:33

Component Overview

ConversationList is a UI component that displays and manages user chat conversations. It provides a robust feature set for conversation listing—enabling users to view conversations and perform key actions directly from the list.
Conversation List
Conversation Actions



Component Integration

ConversationList is part of the TUIKit Flutter package. To add ConversationList to your project, integrate TUIKit Flutter following the TUIKit Flutter documentation.

Component Structure

ConversationList exposes only its initialization method. All other internal logic is handled within the component itself.

Public Methods

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).

Basic Usage

Initialize ConversationList directly, providing an onConversationClick callback.
Parameter Name
Type
Description
onConversationClick
(ConversationInfo conversation) {}
Callback that is invoked when a conversation cell is selected.
Sample code:
Expanded(
child: ConversationList(
onConversationClick: (conversation) {
// We recommend navigating to the chat page here
},
),
),

Customization

You can customize the actions available in the conversation list using the following methods.

Method 1: Hide Conversation Action Items Locally

Provide a custom config when initializing ConversationList to control which menu items are visible:
Expanded(
child: ConversationList(
config: ChatConversationActionConfig(
isSupportDelete: true,
isSupportPin: true,
isSupportClearHistory: false
),
onConversationClick: (conversation) {
// Navigate to chat page on conversation cell click
},
),
),
Supported Action Toggles
Action Type
Description
isSupportDelete
Enable or disable conversation deletion.
isSupportPin
Enable or disable Pin Conversation.
isSupportClearHistory
Enable or disable clearing chat history.

Method 2: Add Custom Conversation Action Items Locally

Pass 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.
Sample code:
Expanded(
child: ConversationList(
customActions: [
ConversationCustomAction(
title: 'Share',
action: (conversation) {
print('Share conversation: ${conversation.title}');
})
],
),
),

Method 3: Configure Actions Globally

Set global configuration via AppBuilder:
// Configure at app startup; if omitted, the feature is not supported
await 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
},
),
),
Note:
Local configuration takes precedence over global configuration.
Below are examples of customization effects:
Conversation Actions (Default Options)
Conversation Actions (Delete Option Hidden)
Conversation Actions (Share Option Added)




Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback