1+ import 'package:amity_uikit_beta_service/v4/chat/home/archived_chat_list_component.dart' ;
2+ import 'package:amity_uikit_beta_service/v4/chat/home/chat_list_component.dart' ;
3+ import 'package:amity_uikit_beta_service/v4/chat/home/amity_conversation_chat_list_component.dart' ;
4+ import 'package:amity_uikit_beta_service/v4/chat/home/amity_group_chat_list_component.dart' ;
5+ import 'package:amity_uikit_beta_service/v4/chat/home/amity_all_chat_list_component.dart' ;
6+ import 'package:flutter/material.dart' ;
7+
8+ class ChatListComponentSample {
9+
10+ /* begin_sample_code
11+ gist_id: f67e3191d947c3a614c38c0512e79d2b
12+ filename: ChatListComponentSample.dart
13+ asc_page: https://docs.social.plus/social-plus-uikit/uikit-v4/chat
14+ description: Component for chat list
15+ */
16+ Widget chatListComponent () {
17+ return ChatListComponent ();
18+ }
19+ /* end_sample_code */
20+
21+ /* begin_sample_code
22+ gist_id: e9ce40fa2d338bb8debf562cee5c3336
23+ filename: ConversationChatListComponentSample.dart
24+ asc_page: https://docs.social.plus/social-plus-uikit/uikit-v4/chat
25+ description: Component for conversation messages only
26+ */
27+ Widget conversationChatListComponent () {
28+ return AmityConversationChatListComponent ();
29+ }
30+ /* end_sample_code */
31+
32+ /* begin_sample_code
33+ gist_id: 2c13ceea053f0f7ce65ab3c5c90322fe
34+ filename: GroupChatListComponentSample.dart
35+ asc_page: https://docs.social.plus/social-plus-uikit/uikit-v4/chat
36+ description: Component for group chats only
37+ */
38+ Widget groupChatListComponent () {
39+ return AmityGroupChatListComponent ();
40+ }
41+ /* end_sample_code */
42+
43+ /* begin_sample_code
44+ gist_id: e268b183bb614de9e09a046cf2baa8db
45+ filename: AllChatListComponentSample.dart
46+ asc_page: https://docs.social.plus/social-plus-uikit/uikit-v4/chat
47+ description: Component for all chat types (conversations + groups)
48+ */
49+ Widget allChatListComponent () {
50+ return AmityAllChatListComponent ();
51+ }
52+ /* end_sample_code */
53+
54+ /* begin_sample_code
55+ gist_id: c41509675b5d2126e6e7f24307175364
56+ filename: ChatListComponentSample.dart
57+ asc_page: https://docs.social.plus/social-plus-uikit/uikit-v4/chat
58+ description: Component for archived chat list
59+ */
60+ Widget archivedChatListComponent () {
61+ return ArchivedChatListComponent ();
62+ }
63+ /* end_sample_code */
64+
65+ }
0 commit comments