@@ -5,13 +5,13 @@ Flutter applications with [Flexible Backend Integration](https://pub.dev/package
55
66## Preview
77
8- | ChatViewList | ChatView |
9- | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------|
10- | ![ ChatViewList_Preview ] ( https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatviewlist .gif ) | ![ ChatView Preview] ( https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatview.gif ) |
8+ | ChatList | ChatView |
9+ | ------------------------------------------------------------------------------------------------------------------| ------------------------------------------------------------------------------------------------------------------|
10+ | ![ ChatList_Preview ] ( https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatlist .gif ) | ![ ChatView Preview] ( https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatview.gif ) |
1111
1212## Features
1313
14- ### ChatViewList :
14+ ### ChatList :
1515
1616- Smooth animations for adding, removing, and pinning chats
1717- Pagination support for large chat histories
@@ -120,26 +120,26 @@ minSdkVersion 21
120120<uses-permission android : name =" android.permission.RECORD_AUDIO" />
121121```
122122
123- # ChatViewList - Basic Usage
123+ # ChatList - Basic Usage
124124
125- Here's how to integrate ChatViewList into your Flutter application with minimal setup:
125+ Here's how to integrate ChatList into your Flutter application with minimal setup:
126126
127- ## Step 1: Create a ChatView List Controller
127+ ## Step 1: Create a ChatList Controller
128128
129129``` dart
130- ChatViewListController chatListController = ChatViewListController (
130+ ChatListController chatListController = ChatListController (
131131 initialChatList: chatList,
132132 scrollController: ScrollController(),
133133);
134134```
135135
136- ## Step 2: Add the ChatViewList Widget
136+ ## Step 2: Add the ChatList Widget
137137
138138``` dart
139- ChatViewList (
139+ ChatList (
140140 controller: chatListController,
141- appbar: const ChatViewListAppBar (
142- title: 'ChatViewList Demo',
141+ appbar: const ChatListAppBar (
142+ title: 'ChatList Demo',
143143 ),
144144 menuConfig: ChatMenuConfig(
145145 deleteCallback: (chat) => chatListController.removeChat(chat.id),
@@ -174,8 +174,8 @@ Define your initial chat list:
174174
175175``` dart
176176
177- List<ChatViewListItem > chatList = [
178- ChatViewListItem (
177+ List<ChatListItem > chatList = [
178+ ChatListItem (
179179 id: '2',
180180 name: 'Simform',
181181 unreadCount: 2,
@@ -191,7 +191,7 @@ List<ChatViewListItem> chatList = [
191191 pinStatus: PinStatus.pinned,
192192 ),
193193 ),
194- ChatViewListItem (
194+ ChatListItem (
195195 id: '1',
196196 name: 'Flutter',
197197 userActiveStatus: UserActiveStatus.online,
@@ -200,17 +200,17 @@ List<ChatViewListItem> chatList = [
200200];
201201```
202202
203- # ChatViewList - Advanced Usage
203+ # ChatList - Advanced Usage
204204
205- ChatViewList offers extensive customization options to tailor the chat list UI to your specific needs.
205+ ChatList offers extensive customization options to tailor the chat list UI to your specific needs.
206206
207207## Adding Custom Appbar
208208
209209``` dart
210- ChatViewList (
210+ ChatList (
211211 // ...
212- appbar: ChatViewListAppBar (
213- title: 'ChatViewList Demo',
212+ appbar: ChatListAppBar (
213+ title: 'ChatList Demo',
214214 centerTitle: false,
215215 actions: [
216216 IconButton(
@@ -228,7 +228,7 @@ ChatViewList(
228228## Adding Search Functionality
229229
230230``` dart
231- ChatViewList (
231+ ChatList (
232232 // ...
233233 searchConfig: SearchConfig(
234234 textEditingController: TextEditingController(),
@@ -254,7 +254,7 @@ ChatViewList(
254254## Adding Custom Header
255255
256256``` dart
257- ChatViewList (
257+ ChatList (
258258 /// ...
259259 header: SizedBox(
260260 height: 60,
@@ -301,7 +301,7 @@ ChatViewList(
301301## Adding Custom Actions in Menu
302302
303303``` dart
304- ChatViewList (
304+ ChatList (
305305 // ...
306306 menuConfig: ChatMenuConfig(
307307 actions: (chat) => [
@@ -349,7 +349,7 @@ ChatViewList(
349349## Chat Tile Configuration
350350
351351``` dart
352- ChatViewList (
352+ ChatList (
353353 // ...
354354 tileConfig: ListTileConfig(
355355 // ...
@@ -375,7 +375,7 @@ ChatViewList(
375375## Typing Indicator Configuration
376376
377377``` dart
378- ChatViewList (
378+ ChatList (
379379 // ...
380380 tileConfig: ListTileConfig(
381381 // ...
@@ -395,7 +395,7 @@ ChatViewList(
395395## Last Message Time Configuration
396396
397397``` dart
398- ChatViewList (
398+ ChatList (
399399 // ...
400400 tileConfig: ListTileConfig(
401401 // ...
@@ -414,7 +414,7 @@ ChatViewList(
414414## Last Message Status Configuration
415415
416416``` dart
417- ChatViewList (
417+ ChatList (
418418 // ...
419419 tileConfig: ListTileConfig(
420420 // ...
@@ -443,7 +443,7 @@ ChatViewList(
443443## Unread Count Configuration
444444
445445``` dart
446- ChatViewList (
446+ ChatList (
447447 // ...
448448 tileConfig: ListTileConfig(
449449 // ...
@@ -460,7 +460,7 @@ ChatViewList(
460460## User Active Status Configuration
461461
462462``` dart
463- ChatViewList (
463+ ChatList (
464464 // ...
465465 tileConfig: ListTileConfig(
466466 // ...
@@ -482,7 +482,7 @@ ChatViewList(
482482## User Avatar Configuration
483483
484484``` dart
485- ChatViewList (
485+ ChatList (
486486 // ...
487487 tileConfig: ListTileConfig(
488488 // ...
@@ -499,10 +499,10 @@ ChatViewList(
499499)
500500```
501501
502- ## ChatViewList States Configuration
502+ ## ChatList States Configuration
503503
504504``` dart
505- ChatViewList (
505+ ChatList (
506506 // ...
507507 stateConfig: const ListStateConfig(
508508 noChatsWidgetConfig: ChatViewStateWidgetConfiguration(
@@ -524,7 +524,7 @@ ChatViewList(
524524## Load More Chats Configuration
525525
526526``` dart
527- ChatViewList (
527+ ChatList (
528528 // ...
529529 loadMoreConfig: LoadMoreConfig(
530530 size: 30,
0 commit comments