File tree Expand file tree Collapse file tree 6 files changed +62
-61
lines changed
lib/src/utils/custom_widgets Expand file tree Collapse file tree 6 files changed +62
-61
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,10 @@ class RegisterController {
36
36
///then Register on v_chat_sdk system
37
37
final u = await VChatController .instance.register (
38
38
dto: VChatRegisterDto (
39
- name: name,
40
- userImage: imagePath == null ? null : File (imagePath! ),
41
- email: email),
39
+ name: name,
40
+ userImage: imagePath == null ? null : File (imagePath! ),
41
+ email: email,
42
+ ),
42
43
context: context,
43
44
);
44
45
await GetStorage ().write ("myModel" , u.toMap ());
Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ void main() async {
25
25
await GetStorage .init ();
26
26
// http://170.178.195.150:81/
27
27
await VChatController .instance.init (
28
- baseUrl: Uri .parse ("http://170.178.195.150:81" ),
29
- appName: "test_v_chat" ,
30
- isUseFirebase: true ,
31
- widgetsBuilder: VChatCustomWidgets (),
32
- enableLogger: true ,
33
- maxMediaUploadSize: 50 * 1000 * 1000 ,
34
- passwordHashKey: "passwordHashKey" );
28
+ baseUrl: Uri .parse ("http://170.178.195.150:81" ),
29
+ appName: "test_v_chat" ,
30
+ isUseFirebase: true ,
31
+ widgetsBuilder: VChatCustomWidgets (),
32
+ enableLogger: true ,
33
+ maxMediaUploadSize: 50 * 1000 * 1000 ,
34
+ passwordHashKey: "passwordHashKey" ,
35
+
36
+ );
35
37
36
38
// add support new language
37
39
// v_chat will change the language one you change it
Original file line number Diff line number Diff line change @@ -168,42 +168,42 @@ packages:
168
168
name: firebase_core
169
169
url: "https://pub.dartlang.org"
170
170
source: hosted
171
- version: "1.10.0 "
171
+ version: "1.10.2 "
172
172
firebase_core_platform_interface:
173
173
dependency: transitive
174
174
description:
175
175
name: firebase_core_platform_interface
176
176
url: "https://pub.dartlang.org"
177
177
source: hosted
178
- version: "4.1 .0"
178
+ version: "4.2 .0"
179
179
firebase_core_web:
180
180
dependency: transitive
181
181
description:
182
182
name: firebase_core_web
183
183
url: "https://pub.dartlang.org"
184
184
source: hosted
185
- version: "1.2 .0"
185
+ version: "1.4 .0"
186
186
firebase_messaging:
187
187
dependency: transitive
188
188
description:
189
189
name: firebase_messaging
190
190
url: "https://pub.dartlang.org"
191
191
source: hosted
192
- version: "11.1 .0"
192
+ version: "11.2 .0"
193
193
firebase_messaging_platform_interface:
194
194
dependency: transitive
195
195
description:
196
196
name: firebase_messaging_platform_interface
197
197
url: "https://pub.dartlang.org"
198
198
source: hosted
199
- version: "3.0.9 "
199
+ version: "3.1.0 "
200
200
firebase_messaging_web:
201
201
dependency: transitive
202
202
description:
203
203
name: firebase_messaging_web
204
204
url: "https://pub.dartlang.org"
205
205
source: hosted
206
- version: "2.1.0 "
206
+ version: "2.2.1 "
207
207
flutter:
208
208
dependency: "direct main"
209
209
description: flutter
@@ -690,7 +690,7 @@ packages:
690
690
name: sqflite
691
691
url: "https://pub.dartlang.org"
692
692
source: hosted
693
- version: "2.0.0+4 "
693
+ version: "2.0.1 "
694
694
sqflite_common:
695
695
dependency: transitive
696
696
description:
Original file line number Diff line number Diff line change @@ -164,39 +164,37 @@ class CustomAlert {
164
164
onWillPop: () async {
165
165
return dismissible;
166
166
},
167
- child: Transform .scale (
168
- scale: a1.value,
169
- child: Opacity (
170
- opacity: a1.value,
171
- child: Platform .isIOS
172
- ? CupertinoAlertDialog (
173
- title: title.text,
174
- content: Column (
175
- mainAxisSize: MainAxisSize .min,
176
- children: [
177
- const SizedBox (
178
- height: 10 ,
179
- ),
180
- ],
167
+ child: Platform .isIOS
168
+ ? CupertinoAlertDialog (
169
+ title: title.text,
170
+ content: Column (
171
+ mainAxisSize: MainAxisSize .min,
172
+ children: [
173
+ const SizedBox (
174
+ height: 10 ,
181
175
),
182
- actions: [
183
- TextButton (
184
- onPressed: () => Navigator .pop (context, - 1 ),
185
- child: VChatAppService .instance
186
- .getTrans (context)
187
- .cancel ()
188
- .text,
189
- ),
190
- TextButton (
191
- onPressed: () => Navigator .pop (context, 1 ),
192
- child: VChatAppService .instance
193
- .getTrans (context)
194
- .oK ()
195
- .text,
196
- ),
197
- ],
198
- )
199
- : AlertDialog (
176
+ ],
177
+ ),
178
+ actions: [
179
+ TextButton (
180
+ onPressed: () => Navigator .pop (context, - 1 ),
181
+ child: VChatAppService .instance
182
+ .getTrans (context)
183
+ .cancel ()
184
+ .text,
185
+ ),
186
+ TextButton (
187
+ onPressed: () => Navigator .pop (context, 1 ),
188
+ child:
189
+ VChatAppService .instance.getTrans (context).oK ().text,
190
+ ),
191
+ ],
192
+ )
193
+ : Transform .scale (
194
+ scale: a1.value,
195
+ child: Opacity (
196
+ opacity: a1.value,
197
+ child: AlertDialog (
200
198
clipBehavior: Clip .antiAliasWithSaveLayer,
201
199
title: title.text,
202
200
contentPadding: EdgeInsets .zero
@@ -226,8 +224,8 @@ class CustomAlert {
226
224
),
227
225
],
228
226
),
229
- ),
230
- ),
227
+ ),
228
+ ),
231
229
);
232
230
},
233
231
transitionDuration: const Duration (milliseconds: 250 ),
Original file line number Diff line number Diff line change @@ -154,42 +154,42 @@ packages:
154
154
name: firebase_core
155
155
url: "https://pub.dartlang.org"
156
156
source: hosted
157
- version: "1.10.0 "
157
+ version: "1.10.2 "
158
158
firebase_core_platform_interface:
159
159
dependency: transitive
160
160
description:
161
161
name: firebase_core_platform_interface
162
162
url: "https://pub.dartlang.org"
163
163
source: hosted
164
- version: "4.1 .0"
164
+ version: "4.2 .0"
165
165
firebase_core_web:
166
166
dependency: transitive
167
167
description:
168
168
name: firebase_core_web
169
169
url: "https://pub.dartlang.org"
170
170
source: hosted
171
- version: "1.2 .0"
171
+ version: "1.4 .0"
172
172
firebase_messaging:
173
173
dependency: "direct main"
174
174
description:
175
175
name: firebase_messaging
176
176
url: "https://pub.dartlang.org"
177
177
source: hosted
178
- version: "11.1 .0"
178
+ version: "11.2 .0"
179
179
firebase_messaging_platform_interface:
180
180
dependency: transitive
181
181
description:
182
182
name: firebase_messaging_platform_interface
183
183
url: "https://pub.dartlang.org"
184
184
source: hosted
185
- version: "3.0.9 "
185
+ version: "3.1.0 "
186
186
firebase_messaging_web:
187
187
dependency: transitive
188
188
description:
189
189
name: firebase_messaging_web
190
190
url: "https://pub.dartlang.org"
191
191
source: hosted
192
- version: "2.1.0 "
192
+ version: "2.2.1 "
193
193
flutter:
194
194
dependency: "direct main"
195
195
description: flutter
@@ -643,7 +643,7 @@ packages:
643
643
name: sqflite
644
644
url: "https://pub.dartlang.org"
645
645
source: hosted
646
- version: "2.0.0+4 "
646
+ version: "2.0.1 "
647
647
sqflite_common:
648
648
dependency: transitive
649
649
description:
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ dependencies:
15
15
bloc : ^8.0.1
16
16
textless : ^6.6.6
17
17
dio : ^4.0.4
18
- firebase_core : ^1.10.0
19
- firebase_messaging : ^11.1 .0
18
+ firebase_core : ^1.10.2
19
+ firebase_messaging : ^11.2 .0
20
20
image_picker : ^0.8.4+4
21
- sqflite : ^2.0.0+4
21
+ sqflite : ^2.0.1
22
22
path_provider : ^2.0.7
23
23
socket_io_client : ^1.0.2
24
24
intl : ^0.17.0
You can’t perform that action at this time.
0 commit comments