Skip to content

Commit 22ce7cd

Browse files
chore: 🚚 Rename ChatViewList to ChatList (#405)
1 parent 49003f3 commit 22ce7cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+154
-155
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* **Breaking**: [330](https://github.com/SimformSolutionsPvtLtd/chatview/issues/330)
1010
Optimized memory usage in chat message handling for smoother performance.
1111
* **Feat**: [386](https://github.com/SimformSolutionsPvtLtd/chatview/pull/386) Introduced
12-
`ChatViewList` to provide a support for listing chats with options like search, pagination, online
12+
`ChatList` to provide a support for listing chats with options like search, pagination, online
1313
status, unread message count, typing indicator, long press menu and more.
1414
* **Feat**: [356](https://github.com/SimformSolutionsPvtLtd/chatview/pull/356) Add
1515
`loadOldReplyMessage` property to `RepliedMessageConfiguration` callback to load the original

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
ChatView is a Flutter package that allows you to integrate a highly customizable chat UI in your
1010
Flutter applications with [Flexible Backend Integration][chatViewConnect].
1111

12-
| ChatViewList | ChatView |
13-
|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
14-
| ![ChatViewList_Preview](https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatviewlist.gif) | ![ChatView Preview](https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatview.gif) |
12+
| ChatList | ChatView |
13+
|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
14+
| ![ChatList_Preview](https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatlist.gif) | ![ChatView Preview](https://raw.githubusercontent.com/SimformSolutionsPvtLtd/chatview/main/preview/chatview.gif) |
1515

1616
## Features
1717

18-
### ChatViewList:
18+
### ChatList:
1919

2020
- Smooth animations for adding, removing, and pinning chats
2121
- Pagination support for large chat histories

doc/documentation.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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,

example/lib/data.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ class Data {
44
static const profileImage =
55
"https://github.com/SimformSolutionsPvtLtd/chatview/blob/main/example/assets/images/simform.png?raw=true";
66

7-
static List<ChatViewListItem> getChatList() {
7+
static List<ChatListItem> getChatList() {
88
final now = DateTime.now();
99
return [
10-
ChatViewListItem(
10+
ChatListItem(
1111
id: '1',
1212
name: 'Weekend',
1313
imageUrl:
@@ -22,7 +22,7 @@ class Data {
2222
),
2323
settings: const ChatSettings(pinStatus: PinStatus.pinned),
2424
),
25-
ChatViewListItem(
25+
ChatListItem(
2626
id: '2',
2727
name: 'Andrius Schneider',
2828
imageUrl:
@@ -37,7 +37,7 @@ class Data {
3737
status: MessageStatus.delivered,
3838
),
3939
),
40-
ChatViewListItem(
40+
ChatListItem(
4141
id: '3',
4242
name: 'Anna Payet',
4343
imageUrl:
@@ -51,7 +51,7 @@ class Data {
5151
status: MessageStatus.undelivered,
5252
),
5353
),
54-
ChatViewListItem(
54+
ChatListItem(
5555
id: '4',
5656
name: 'Family',
5757
unreadCount: 4,
@@ -66,7 +66,7 @@ class Data {
6666
status: MessageStatus.pending,
6767
),
6868
),
69-
ChatViewListItem(
69+
ChatListItem(
7070
id: '5',
7171
name: 'Maria',
7272
imageUrl:
@@ -79,7 +79,7 @@ class Data {
7979
status: MessageStatus.read,
8080
),
8181
),
82-
ChatViewListItem(
82+
ChatListItem(
8383
id: '6',
8484
name: 'Lunch club!',
8585
chatRoomType: ChatRoomType.group,
@@ -94,7 +94,7 @@ class Data {
9494
),
9595
settings: const ChatSettings(muteStatus: MuteStatus.muted),
9696
),
97-
ChatViewListItem(
97+
ChatListItem(
9898
id: '7',
9999
name: "Jasper's market",
100100
imageUrl:
@@ -108,7 +108,7 @@ class Data {
108108
status: MessageStatus.read,
109109
),
110110
),
111-
ChatViewListItem(
111+
ChatListItem(
112112
id: '8',
113113
name: 'Work',
114114
chatRoomType: ChatRoomType.group,
@@ -122,7 +122,7 @@ class Data {
122122
status: MessageStatus.read,
123123
),
124124
),
125-
ChatViewListItem(
125+
ChatListItem(
126126
id: '9',
127127
name: 'Evelyn Harper',
128128
imageUrl:
@@ -135,7 +135,7 @@ class Data {
135135
status: MessageStatus.read,
136136
),
137137
),
138-
ChatViewListItem(
138+
ChatListItem(
139139
id: '10',
140140
name: 'Book club',
141141
chatRoomType: ChatRoomType.group,

example/lib/example_two/example_two_chat_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import 'package:flutter_svg/flutter_svg.dart';
55
import 'package:intl/intl.dart';
66

77
import '../data.dart';
8-
import '../values/colors.dart';
98
import '../values/borders.dart';
9+
import '../values/colors.dart';
1010
import '../values/icons.dart';
1111
import '../values/images.dart';
1212
import '../widgets/custom_chat_bar.dart';
@@ -15,7 +15,7 @@ import '../widgets/reply_message_tile.dart';
1515
class ExampleTwoChatScreen extends StatefulWidget {
1616
const ExampleTwoChatScreen({required this.chat, super.key});
1717

18-
final ChatViewListItem chat;
18+
final ChatListItem chat;
1919

2020
@override
2121
State<ExampleTwoChatScreen> createState() => _ExampleTwoChatScreenState();

0 commit comments

Comments
 (0)