Release Notes
Announcements
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},),
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