제품 개요
Basic Concepts
응용 시나리오
기능 소개
계정 시스템
사용자 정보 및 관계망
메시지 관리
그룹 시스템
Official Account
Audio/Video Call
사용 제한
Search Entry | Search Results |
![]() | ![]() |
SearchBar serves as the primary Widget for search and is typically placed at the top of your Scaffold body. Only the initialization method for the Search component is exposed; all internal logic is handled within SearchBar.Method | Parameter | Description |
SearchBar | Webhook triggered when a contact result is clicked; optional parameter. | |
SearchBar | Webhook triggered when a group result is clicked; optional parameter. | |
SearchBar | Webhook triggered when a conversation result is clicked; optional parameter. | |
SearchBar | Webhook triggered when a message result is clicked; optional parameter. |
SearchBar manages navigation for search results in two ways:onContactSelect, onGroupSelect, onConversationSelect, or onMessageSelect) is triggered. Implement your custom navigation logic within these Webhooks (for example, routing to your own chat interface).
SearchBar, simply add it to your widget tree:SearchBar(onContactSelect: (FriendSearchInfo selectedContact) {// Handle contact selection},onGroupSelect: (GroupSearchInfo selectedGroup) {// Handle group selection},onConversationSelect: (MessageSearchResultItem selectedConversation) {// Handle conversation selection},onMessageSelect: (MessageInfo selectedMessage) {// Handle message selection},),
피드백