CometChatContacts
screen, providing a seamless flow from the dashboard to a conversation.
appID
, region
, authKey
) initializedComponent / Class | Role |
---|---|
CometChatAvatar | Displays the user avatar in the app bar |
PopupMenuButton | Shows menu options when the avatar is tapped |
CometChatContacts | UI for the “Start Conversation” screen |
CometChatContactsController | Manages tab switching and item selection |
CometChatUsers / CometChatGroups | Lists users or groups with search and selection |
PageManager | Handles navigation to the chat screen |
sample_app/lib/dashboard.dart
sample_app/lib/dashboard.dart
sample_app/lib/contacts/cometchat_contacts_controller.dart
sample_app/lib/utils/page_manager.dart
CometChatContacts
_onItemTap
onSearch
and onItemTap
for custom logicCometChatUsers
and CometChatGroups
provide real-time searchSnackBar
or Toast
for custom error messagesFeature | Component / Method | File(s) |
---|---|---|
Show avatar/menu | PopupMenuButton , CometChatAvatar | dashboard.dart |
Open conversation UI | CometChatContacts | dashboard.dart |
List/search users | CometChatUsers | cometchat_contacts_controller.dart |
List/search groups | CometChatGroups | cometchat_contacts_controller.dart |
Handle selection | _onItemTap | page_manager.dart |
Navigate to chat | PageManager.navigateToMessages | page_manager.dart |