Skip to content

Commit 9b0caf6

Browse files
committed
update .readMe
1 parent 60daec6 commit 9b0caf6

File tree

7 files changed

+30
-30
lines changed

7 files changed

+30
-30
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,7 @@
7575
* update packages and support multiple device open same account
7676

7777
## 1.0.3
78+
* update packages
79+
80+
## 1.0.4
7881
* update packages

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
<a href="https://hatemragab.github.io/VChatSdk-Documentation/"> VCHAT Documention</a> <br />
66
<a href="https://pub.dev/packages/v_chat_sdk"> v_chat_sdk on pub.dev</a> <br />
77

8+
<a href="https://hatemragab.github.io/VChatSdk-Documentation/docs/how_to_get_backend_code/how_to_get_backend_code"> Backend Code </a> <br />
9+
810

911
## Android Test
1012

11-
<a href="https://drive.google.com/file/d/1BpEY2wrzzPqbgT-la0-xHc6VbwFVJ5rz/view?usp=sharing"> <img src="https://user-images.githubusercontent.com/37384769/145644981-17ec8f75-be19-4cea-9322-52f1b31a15da.png" width ="300" /></a> <br />
13+
<a href="https://play.google.com/store/apps/details?id=com.vchatsdk.app"> <img src="https://user-images.githubusercontent.com/37384769/145644981-17ec8f75-be19-4cea-9322-52f1b31a15da.png" width ="300" /></a> <br />
1214

1315
## IOS Test Flight
1416

example/lib/screens/group_chat_info/group_chat_info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class _GroupChatInfoState extends State<GroupChatInfo> {
205205
Column(
206206
crossAxisAlignment: CrossAxisAlignment.start,
207207
children: [
208-
members[index].mame.text,
208+
members[index].name.text,
209209
members[index]
210210
.vChatUserGroupRole
211211
.inString

lib/src/models/v_chat_group_user.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:v_chat_sdk/src/utils/v_chat_config.dart';
44
class VChatGroupUser {
55
final String id;
66
final String email;
7-
final String mame;
7+
final String name;
88
final String image;
99
final VChatUserGroupRole vChatUserGroupRole;
1010

@@ -13,7 +13,7 @@ class VChatGroupUser {
1313
const VChatGroupUser({
1414
required this.id,
1515
required this.email,
16-
required this.mame,
16+
required this.name,
1717
required this.image,
1818
required this.vChatUserGroupRole,
1919
});
@@ -24,33 +24,33 @@ class VChatGroupUser {
2424
(other is VChatGroupUser &&
2525
runtimeType == other.runtimeType &&
2626
email == other.email &&
27-
mame == other.mame &&
27+
name == other.name &&
2828
image == other.image &&
2929
vChatUserGroupRole == other.vChatUserGroupRole);
3030

3131
@override
3232
int get hashCode =>
3333
email.hashCode ^
34-
mame.hashCode ^
34+
name.hashCode ^
3535
image.hashCode ^
3636
vChatUserGroupRole.hashCode;
3737

3838
@override
3939
String toString() {
40-
return 'VChatGroupUser{ id: $id, email: $email, mame: $mame, image: $image, vChatUserGroupRole: $vChatUserGroupRole,}';
40+
return 'VChatGroupUser{ id: $id, email: $email, mame: $name, image: $image, vChatUserGroupRole: $vChatUserGroupRole,}';
4141
}
4242

4343
VChatGroupUser copyWith({
4444
String? id,
4545
String? email,
46-
String? mame,
46+
String? name,
4747
String? image,
4848
VChatUserGroupRole? vChatUserGroupRole,
4949
}) {
5050
return VChatGroupUser(
5151
id: id ?? this.id,
5252
email: email ?? this.email,
53-
mame: mame ?? this.mame,
53+
name: name ?? this.name,
5454
image: image ?? this.image,
5555
vChatUserGroupRole: vChatUserGroupRole ?? this.vChatUserGroupRole,
5656
);
@@ -60,7 +60,7 @@ class VChatGroupUser {
6060
return {
6161
'_id': id,
6262
'email': email,
63-
'mame': mame,
63+
'mame': name,
6464
'image': image,
6565
'role': vChatUserGroupRole.inString,
6666
};
@@ -70,7 +70,7 @@ class VChatGroupUser {
7070
return VChatGroupUser(
7171
id: map['_id'] as String,
7272
email: map['email'] as String,
73-
mame: map['name'] as String,
73+
name: map['name'] as String,
7474
image: VChatConfig.profileImageBaseUrl + (map['imageThumb'] as String),
7575
vChatUserGroupRole: map['role'] == VChatUserGroupRole.admin.inString
7676
? VChatUserGroupRole.admin

lib/src/services/socket_service.dart

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,20 @@ class SocketService {
2626
bool get isConnected => _socket!.connected;
2727

2828
Socket getSocket() {
29-
return io(VChatConfig.serverIp, <String, dynamic>{
30-
'transports': ['websocket'],
31-
'pingTimeout': 5000,
32-
'connectTimeout': 5000,
33-
'pingInterval': 5000,
34-
'extraHeaders': <String, String>{
35-
'Authorization': VChatAppService.instance.vChatUser!.accessToken,
36-
"accept-language": VChatAppService.instance.currentLocal
29+
return io(
30+
VChatConfig.serverIp,
31+
<String, dynamic>{
32+
'transports': ['websocket'],
33+
'pingTimeout': 5000,
34+
'connectTimeout': 5000,
35+
'pingInterval': 5000,
36+
'extraHeaders': <String, String>{
37+
'Authorization': VChatAppService.instance.vChatUser!.accessToken,
38+
"accept-language": VChatAppService.instance.currentLocal
39+
},
40+
'forceNew': true
3741
},
38-
'forceNew': true
39-
});
40-
}
41-
42-
void emitRefreshChats() {
43-
_socket!.emit("join");
42+
);
4443
}
4544

4645
void connectSocket() {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: v_chat_sdk
22
description: official sdk for v chat this is a complete chat ecosystem use flutter for clint node js and socket io for server side flutter chat v chat sdk
3-
version: 1.0.3
3+
version: 1.0.4
44
homepage: https://github.com/hatemragab/v_chat_sdk
55

66
environment:

v_chat_theme_usage

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)