李志伟 3 anni fa
parent
commit
b052c991e6
2 ha cambiato i file con 108 aggiunte e 107 eliminazioni
  1. 28
    27
      lib/pages/feedback/index.dart
  2. 80
    80
      pubspec.lock

+ 28
- 27
lib/pages/feedback/index.dart Vedi File

@@ -8,8 +8,8 @@ import 'package:get/get.dart';
8 8
 import '../../services/main.dart';
9 9
 
10 10
 class Feedback extends BasicPage {
11
-  final text=Rx<String>('');
12
-  final isEdit=Rx<bool>(false);
11
+  final text = Rx<String>('');
12
+  final isEdit = Rx<bool>(false);
13 13
 
14 14
   @override
15 15
   Widget builder(BuildContext context) {
@@ -40,38 +40,40 @@ class Feedback extends BasicPage {
40 40
                 floatingLabelBehavior: FloatingLabelBehavior.never,
41 41
               ),
42 42
               onTap: () {
43
-                  isEdit.value=true;
43
+                isEdit.value = true;
44 44
               },
45 45
               onChanged: (e) {
46
-                  text.value = e;
46
+                text.value = e;
47 47
               },
48 48
             ),
49 49
           ),
50
-          Obx(()=>
51
-          Visibility(
52
-          visible:!isEdit(),
53
-            child:
54
-          Positioned(
55
-            left: 20.w,
56
-            top: 5.w,
57
-            child: Row(
58
-              children: [
59
-                Image.asset(
60
-                  'images/icons/feedbackIcon.png',
61
-                  width: 15.w,
62
-                ),
63
-                Text(
64
-                  '请留下您宝贵的意见和建议!',
65
-                  style: TextStyle(
66
-                      fontSize: 17.sp,
67
-                      letterSpacing: 2,
68
-                      color: Color(0xFFBEBDBD)),
50
+          Obx(
51
+            () => Visibility(
52
+              visible: !isEdit(),
53
+              child: Positioned(
54
+                left: 20.w,
55
+                top: 5.w,
56
+                child: Row(
57
+                  children: [
58
+                    Container(
59
+                      margin: EdgeInsets.only(right: 8.w),
60
+                      child: Image.asset(
61
+                        'images/icons/feedbackIcon.png',
62
+                        width: 15.w,
63
+                      ),
64
+                    ),
65
+                    Text(
66
+                      '请留下您宝贵的意见和建议!',
67
+                      style: TextStyle(
68
+                          fontSize: 17.sp,
69
+                          letterSpacing: 2,
70
+                          color: const Color(0xFFBEBDBD)),
71
+                    ),
72
+                  ],
69 73
                 ),
70
-              ],
74
+              ),
71 75
             ),
72 76
           ),
73
-          ),
74
-          ),
75 77
           Positioned(
76 78
             bottom: 25.h,
77 79
             child: DefaultButton(
@@ -88,7 +90,6 @@ class Feedback extends BasicPage {
88 90
                     Fluttertoast.showToast(msg: '提交成功!');
89 91
                     Get.back();
90 92
                   });
91
-
92 93
                 }
93 94
               },
94 95
               margin: const EdgeInsets.all(0),

+ 80
- 80
pubspec.lock Vedi File

@@ -5,175 +5,175 @@ packages:
5 5
     dependency: transitive
6 6
     description:
7 7
       name: _fe_analyzer_shared
8
-      url: "https://pub.dartlang.org"
8
+      url: "https://pub.flutter-io.cn"
9 9
     source: hosted
10 10
     version: "39.0.0"
11 11
   amap_flutter_base:
12 12
     dependency: transitive
13 13
     description:
14 14
       name: amap_flutter_base
15
-      url: "https://pub.dartlang.org"
15
+      url: "https://pub.flutter-io.cn"
16 16
     source: hosted
17 17
     version: "3.0.0"
18 18
   amap_flutter_location:
19 19
     dependency: "direct main"
20 20
     description:
21 21
       name: amap_flutter_location
22
-      url: "https://pub.dartlang.org"
22
+      url: "https://pub.flutter-io.cn"
23 23
     source: hosted
24 24
     version: "3.0.0"
25 25
   amap_flutter_map:
26 26
     dependency: "direct main"
27 27
     description:
28 28
       name: amap_flutter_map
29
-      url: "https://pub.dartlang.org"
29
+      url: "https://pub.flutter-io.cn"
30 30
     source: hosted
31 31
     version: "3.0.0"
32 32
   analyzer:
33 33
     dependency: transitive
34 34
     description:
35 35
       name: analyzer
36
-      url: "https://pub.dartlang.org"
36
+      url: "https://pub.flutter-io.cn"
37 37
     source: hosted
38 38
     version: "4.0.0"
39 39
   args:
40 40
     dependency: transitive
41 41
     description:
42 42
       name: args
43
-      url: "https://pub.dartlang.org"
43
+      url: "https://pub.flutter-io.cn"
44 44
     source: hosted
45 45
     version: "2.3.0"
46 46
   async:
47 47
     dependency: transitive
48 48
     description:
49 49
       name: async
50
-      url: "https://pub.dartlang.org"
50
+      url: "https://pub.flutter-io.cn"
51 51
     source: hosted
52 52
     version: "2.8.2"
53 53
   boolean_selector:
54 54
     dependency: transitive
55 55
     description:
56 56
       name: boolean_selector
57
-      url: "https://pub.dartlang.org"
57
+      url: "https://pub.flutter-io.cn"
58 58
     source: hosted
59 59
     version: "2.1.0"
60 60
   build:
61 61
     dependency: transitive
62 62
     description:
63 63
       name: build
64
-      url: "https://pub.dartlang.org"
64
+      url: "https://pub.flutter-io.cn"
65 65
     source: hosted
66 66
     version: "2.3.0"
67 67
   build_config:
68 68
     dependency: transitive
69 69
     description:
70 70
       name: build_config
71
-      url: "https://pub.dartlang.org"
71
+      url: "https://pub.flutter-io.cn"
72 72
     source: hosted
73 73
     version: "1.0.0"
74 74
   carousel_slider:
75 75
     dependency: "direct main"
76 76
     description:
77 77
       name: carousel_slider
78
-      url: "https://pub.dartlang.org"
78
+      url: "https://pub.flutter-io.cn"
79 79
     source: hosted
80 80
     version: "4.1.1"
81 81
   characters:
82 82
     dependency: transitive
83 83
     description:
84 84
       name: characters
85
-      url: "https://pub.dartlang.org"
85
+      url: "https://pub.flutter-io.cn"
86 86
     source: hosted
87 87
     version: "1.2.0"
88 88
   charcode:
89 89
     dependency: transitive
90 90
     description:
91 91
       name: charcode
92
-      url: "https://pub.dartlang.org"
92
+      url: "https://pub.flutter-io.cn"
93 93
     source: hosted
94 94
     version: "1.3.1"
95 95
   checked_yaml:
96 96
     dependency: transitive
97 97
     description:
98 98
       name: checked_yaml
99
-      url: "https://pub.dartlang.org"
99
+      url: "https://pub.flutter-io.cn"
100 100
     source: hosted
101 101
     version: "2.0.1"
102 102
   clock:
103 103
     dependency: transitive
104 104
     description:
105 105
       name: clock
106
-      url: "https://pub.dartlang.org"
106
+      url: "https://pub.flutter-io.cn"
107 107
     source: hosted
108 108
     version: "1.1.0"
109 109
   collection:
110 110
     dependency: transitive
111 111
     description:
112 112
       name: collection
113
-      url: "https://pub.dartlang.org"
113
+      url: "https://pub.flutter-io.cn"
114 114
     source: hosted
115 115
     version: "1.15.0"
116 116
   convert:
117 117
     dependency: transitive
118 118
     description:
119 119
       name: convert
120
-      url: "https://pub.dartlang.org"
120
+      url: "https://pub.flutter-io.cn"
121 121
     source: hosted
122 122
     version: "3.0.1"
123 123
   crypto:
124 124
     dependency: transitive
125 125
     description:
126 126
       name: crypto
127
-      url: "https://pub.dartlang.org"
127
+      url: "https://pub.flutter-io.cn"
128 128
     source: hosted
129
-    version: "3.0.1"
129
+    version: "3.0.2"
130 130
   cupertino_icons:
131 131
     dependency: "direct main"
132 132
     description:
133 133
       name: cupertino_icons
134
-      url: "https://pub.dartlang.org"
134
+      url: "https://pub.flutter-io.cn"
135 135
     source: hosted
136 136
     version: "1.0.4"
137 137
   dart_style:
138 138
     dependency: transitive
139 139
     description:
140 140
       name: dart_style
141
-      url: "https://pub.dartlang.org"
141
+      url: "https://pub.flutter-io.cn"
142 142
     source: hosted
143 143
     version: "2.2.3"
144 144
   dio:
145 145
     dependency: "direct main"
146 146
     description:
147 147
       name: dio
148
-      url: "https://pub.dartlang.org"
148
+      url: "https://pub.flutter-io.cn"
149 149
     source: hosted
150 150
     version: "4.0.6"
151 151
   fake_async:
152 152
     dependency: transitive
153 153
     description:
154 154
       name: fake_async
155
-      url: "https://pub.dartlang.org"
155
+      url: "https://pub.flutter-io.cn"
156 156
     source: hosted
157 157
     version: "1.2.0"
158 158
   ff_stars:
159 159
     dependency: "direct main"
160 160
     description:
161 161
       name: ff_stars
162
-      url: "https://pub.dartlang.org"
162
+      url: "https://pub.flutter-io.cn"
163 163
     source: hosted
164 164
     version: "1.0.0"
165 165
   ffi:
166 166
     dependency: transitive
167 167
     description:
168 168
       name: ffi
169
-      url: "https://pub.dartlang.org"
169
+      url: "https://pub.flutter-io.cn"
170 170
     source: hosted
171 171
     version: "1.1.2"
172 172
   file:
173 173
     dependency: transitive
174 174
     description:
175 175
       name: file
176
-      url: "https://pub.dartlang.org"
176
+      url: "https://pub.flutter-io.cn"
177 177
     source: hosted
178 178
     version: "6.1.2"
179 179
   flutter:
@@ -185,7 +185,7 @@ packages:
185 185
     dependency: "direct dev"
186 186
     description:
187 187
       name: flutter_lints
188
-      url: "https://pub.dartlang.org"
188
+      url: "https://pub.flutter-io.cn"
189 189
     source: hosted
190 190
     version: "1.0.4"
191 191
   flutter_localizations:
@@ -197,16 +197,16 @@ packages:
197 197
     dependency: transitive
198 198
     description:
199 199
       name: flutter_plugin_android_lifecycle
200
-      url: "https://pub.dartlang.org"
200
+      url: "https://pub.flutter-io.cn"
201 201
     source: hosted
202 202
     version: "2.0.5"
203 203
   flutter_screenutil:
204 204
     dependency: "direct main"
205 205
     description:
206 206
       name: flutter_screenutil
207
-      url: "https://pub.dartlang.org"
207
+      url: "https://pub.flutter-io.cn"
208 208
     source: hosted
209
-    version: "5.4.0+1"
209
+    version: "5.5.2"
210 210
   flutter_test:
211 211
     dependency: "direct dev"
212 212
     description: flutter
@@ -221,231 +221,231 @@ packages:
221 221
     dependency: "direct main"
222 222
     description:
223 223
       name: fluttertoast
224
-      url: "https://pub.dartlang.org"
224
+      url: "https://pub.flutter-io.cn"
225 225
     source: hosted
226 226
     version: "8.0.9"
227 227
   get:
228 228
     dependency: "direct main"
229 229
     description:
230 230
       name: get
231
-      url: "https://pub.dartlang.org"
231
+      url: "https://pub.flutter-io.cn"
232 232
     source: hosted
233 233
     version: "4.6.1"
234 234
   get_storage:
235 235
     dependency: "direct main"
236 236
     description:
237 237
       name: get_storage
238
-      url: "https://pub.dartlang.org"
238
+      url: "https://pub.flutter-io.cn"
239 239
     source: hosted
240 240
     version: "2.0.3"
241 241
   glob:
242 242
     dependency: transitive
243 243
     description:
244 244
       name: glob
245
-      url: "https://pub.dartlang.org"
245
+      url: "https://pub.flutter-io.cn"
246 246
     source: hosted
247 247
     version: "2.0.2"
248 248
   http_parser:
249 249
     dependency: transitive
250 250
     description:
251 251
       name: http_parser
252
-      url: "https://pub.dartlang.org"
252
+      url: "https://pub.flutter-io.cn"
253 253
     source: hosted
254 254
     version: "4.0.0"
255 255
   intl:
256 256
     dependency: transitive
257 257
     description:
258 258
       name: intl
259
-      url: "https://pub.dartlang.org"
259
+      url: "https://pub.flutter-io.cn"
260 260
     source: hosted
261 261
     version: "0.17.0"
262 262
   js:
263 263
     dependency: transitive
264 264
     description:
265 265
       name: js
266
-      url: "https://pub.dartlang.org"
266
+      url: "https://pub.flutter-io.cn"
267 267
     source: hosted
268 268
     version: "0.6.3"
269 269
   json_annotation:
270 270
     dependency: transitive
271 271
     description:
272 272
       name: json_annotation
273
-      url: "https://pub.dartlang.org"
273
+      url: "https://pub.flutter-io.cn"
274 274
     source: hosted
275
-    version: "4.4.0"
275
+    version: "4.5.0"
276 276
   json_serializable:
277 277
     dependency: "direct main"
278 278
     description:
279 279
       name: json_serializable
280
-      url: "https://pub.dartlang.org"
280
+      url: "https://pub.flutter-io.cn"
281 281
     source: hosted
282
-    version: "6.1.6"
282
+    version: "6.2.0"
283 283
   lints:
284 284
     dependency: transitive
285 285
     description:
286 286
       name: lints
287
-      url: "https://pub.dartlang.org"
287
+      url: "https://pub.flutter-io.cn"
288 288
     source: hosted
289 289
     version: "1.0.1"
290 290
   logging:
291 291
     dependency: transitive
292 292
     description:
293 293
       name: logging
294
-      url: "https://pub.dartlang.org"
294
+      url: "https://pub.flutter-io.cn"
295 295
     source: hosted
296 296
     version: "1.0.2"
297 297
   matcher:
298 298
     dependency: transitive
299 299
     description:
300 300
       name: matcher
301
-      url: "https://pub.dartlang.org"
301
+      url: "https://pub.flutter-io.cn"
302 302
     source: hosted
303 303
     version: "0.12.11"
304 304
   material_color_utilities:
305 305
     dependency: transitive
306 306
     description:
307 307
       name: material_color_utilities
308
-      url: "https://pub.dartlang.org"
308
+      url: "https://pub.flutter-io.cn"
309 309
     source: hosted
310 310
     version: "0.1.3"
311 311
   meta:
312 312
     dependency: transitive
313 313
     description:
314 314
       name: meta
315
-      url: "https://pub.dartlang.org"
315
+      url: "https://pub.flutter-io.cn"
316 316
     source: hosted
317 317
     version: "1.7.0"
318 318
   package_config:
319 319
     dependency: transitive
320 320
     description:
321 321
       name: package_config
322
-      url: "https://pub.dartlang.org"
322
+      url: "https://pub.flutter-io.cn"
323 323
     source: hosted
324 324
     version: "2.0.2"
325 325
   path:
326 326
     dependency: transitive
327 327
     description:
328 328
       name: path
329
-      url: "https://pub.dartlang.org"
329
+      url: "https://pub.flutter-io.cn"
330 330
     source: hosted
331 331
     version: "1.8.0"
332 332
   path_provider:
333 333
     dependency: transitive
334 334
     description:
335 335
       name: path_provider
336
-      url: "https://pub.dartlang.org"
336
+      url: "https://pub.flutter-io.cn"
337 337
     source: hosted
338 338
     version: "2.0.9"
339 339
   path_provider_android:
340 340
     dependency: transitive
341 341
     description:
342 342
       name: path_provider_android
343
-      url: "https://pub.dartlang.org"
343
+      url: "https://pub.flutter-io.cn"
344 344
     source: hosted
345 345
     version: "2.0.13"
346 346
   path_provider_ios:
347 347
     dependency: transitive
348 348
     description:
349 349
       name: path_provider_ios
350
-      url: "https://pub.dartlang.org"
350
+      url: "https://pub.flutter-io.cn"
351 351
     source: hosted
352 352
     version: "2.0.8"
353 353
   path_provider_linux:
354 354
     dependency: transitive
355 355
     description:
356 356
       name: path_provider_linux
357
-      url: "https://pub.dartlang.org"
357
+      url: "https://pub.flutter-io.cn"
358 358
     source: hosted
359 359
     version: "2.1.5"
360 360
   path_provider_macos:
361 361
     dependency: transitive
362 362
     description:
363 363
       name: path_provider_macos
364
-      url: "https://pub.dartlang.org"
364
+      url: "https://pub.flutter-io.cn"
365 365
     source: hosted
366 366
     version: "2.0.5"
367 367
   path_provider_platform_interface:
368 368
     dependency: transitive
369 369
     description:
370 370
       name: path_provider_platform_interface
371
-      url: "https://pub.dartlang.org"
371
+      url: "https://pub.flutter-io.cn"
372 372
     source: hosted
373 373
     version: "2.0.3"
374 374
   path_provider_windows:
375 375
     dependency: transitive
376 376
     description:
377 377
       name: path_provider_windows
378
-      url: "https://pub.dartlang.org"
378
+      url: "https://pub.flutter-io.cn"
379 379
     source: hosted
380 380
     version: "2.0.5"
381 381
   permission_handler:
382 382
     dependency: "direct main"
383 383
     description:
384 384
       name: permission_handler
385
-      url: "https://pub.dartlang.org"
385
+      url: "https://pub.flutter-io.cn"
386 386
     source: hosted
387 387
     version: "9.2.0"
388 388
   permission_handler_android:
389 389
     dependency: transitive
390 390
     description:
391 391
       name: permission_handler_android
392
-      url: "https://pub.dartlang.org"
392
+      url: "https://pub.flutter-io.cn"
393 393
     source: hosted
394 394
     version: "9.0.2+1"
395 395
   permission_handler_apple:
396 396
     dependency: transitive
397 397
     description:
398 398
       name: permission_handler_apple
399
-      url: "https://pub.dartlang.org"
399
+      url: "https://pub.flutter-io.cn"
400 400
     source: hosted
401 401
     version: "9.0.4"
402 402
   permission_handler_platform_interface:
403 403
     dependency: transitive
404 404
     description:
405 405
       name: permission_handler_platform_interface
406
-      url: "https://pub.dartlang.org"
406
+      url: "https://pub.flutter-io.cn"
407 407
     source: hosted
408 408
     version: "3.7.0"
409 409
   permission_handler_windows:
410 410
     dependency: transitive
411 411
     description:
412 412
       name: permission_handler_windows
413
-      url: "https://pub.dartlang.org"
413
+      url: "https://pub.flutter-io.cn"
414 414
     source: hosted
415 415
     version: "0.1.0"
416 416
   platform:
417 417
     dependency: transitive
418 418
     description:
419 419
       name: platform
420
-      url: "https://pub.dartlang.org"
420
+      url: "https://pub.flutter-io.cn"
421 421
     source: hosted
422 422
     version: "3.1.0"
423 423
   plugin_platform_interface:
424 424
     dependency: transitive
425 425
     description:
426 426
       name: plugin_platform_interface
427
-      url: "https://pub.dartlang.org"
427
+      url: "https://pub.flutter-io.cn"
428 428
     source: hosted
429 429
     version: "2.1.2"
430 430
   process:
431 431
     dependency: transitive
432 432
     description:
433 433
       name: process
434
-      url: "https://pub.dartlang.org"
434
+      url: "https://pub.flutter-io.cn"
435 435
     source: hosted
436 436
     version: "4.2.4"
437 437
   pub_semver:
438 438
     dependency: transitive
439 439
     description:
440 440
       name: pub_semver
441
-      url: "https://pub.dartlang.org"
441
+      url: "https://pub.flutter-io.cn"
442 442
     source: hosted
443 443
     version: "2.1.1"
444 444
   pubspec_parse:
445 445
     dependency: transitive
446 446
     description:
447 447
       name: pubspec_parse
448
-      url: "https://pub.dartlang.org"
448
+      url: "https://pub.flutter-io.cn"
449 449
     source: hosted
450 450
     version: "1.2.0"
451 451
   sky_engine:
@@ -457,105 +457,105 @@ packages:
457 457
     dependency: transitive
458 458
     description:
459 459
       name: source_gen
460
-      url: "https://pub.dartlang.org"
460
+      url: "https://pub.flutter-io.cn"
461 461
     source: hosted
462 462
     version: "1.2.2"
463 463
   source_helper:
464 464
     dependency: transitive
465 465
     description:
466 466
       name: source_helper
467
-      url: "https://pub.dartlang.org"
467
+      url: "https://pub.flutter-io.cn"
468 468
     source: hosted
469 469
     version: "1.3.2"
470 470
   source_span:
471 471
     dependency: transitive
472 472
     description:
473 473
       name: source_span
474
-      url: "https://pub.dartlang.org"
474
+      url: "https://pub.flutter-io.cn"
475 475
     source: hosted
476 476
     version: "1.8.1"
477 477
   stack_trace:
478 478
     dependency: transitive
479 479
     description:
480 480
       name: stack_trace
481
-      url: "https://pub.dartlang.org"
481
+      url: "https://pub.flutter-io.cn"
482 482
     source: hosted
483 483
     version: "1.10.0"
484 484
   stream_channel:
485 485
     dependency: transitive
486 486
     description:
487 487
       name: stream_channel
488
-      url: "https://pub.dartlang.org"
488
+      url: "https://pub.flutter-io.cn"
489 489
     source: hosted
490 490
     version: "2.1.0"
491 491
   stream_transform:
492 492
     dependency: transitive
493 493
     description:
494 494
       name: stream_transform
495
-      url: "https://pub.dartlang.org"
495
+      url: "https://pub.flutter-io.cn"
496 496
     source: hosted
497 497
     version: "2.0.0"
498 498
   string_scanner:
499 499
     dependency: transitive
500 500
     description:
501 501
       name: string_scanner
502
-      url: "https://pub.dartlang.org"
502
+      url: "https://pub.flutter-io.cn"
503 503
     source: hosted
504 504
     version: "1.1.0"
505 505
   term_glyph:
506 506
     dependency: transitive
507 507
     description:
508 508
       name: term_glyph
509
-      url: "https://pub.dartlang.org"
509
+      url: "https://pub.flutter-io.cn"
510 510
     source: hosted
511 511
     version: "1.2.0"
512 512
   test_api:
513 513
     dependency: transitive
514 514
     description:
515 515
       name: test_api
516
-      url: "https://pub.dartlang.org"
516
+      url: "https://pub.flutter-io.cn"
517 517
     source: hosted
518 518
     version: "0.4.8"
519 519
   typed_data:
520 520
     dependency: transitive
521 521
     description:
522 522
       name: typed_data
523
-      url: "https://pub.dartlang.org"
523
+      url: "https://pub.flutter-io.cn"
524 524
     source: hosted
525 525
     version: "1.3.0"
526 526
   vector_math:
527 527
     dependency: transitive
528 528
     description:
529 529
       name: vector_math
530
-      url: "https://pub.dartlang.org"
530
+      url: "https://pub.flutter-io.cn"
531 531
     source: hosted
532 532
     version: "2.1.1"
533 533
   watcher:
534 534
     dependency: transitive
535 535
     description:
536 536
       name: watcher
537
-      url: "https://pub.dartlang.org"
537
+      url: "https://pub.flutter-io.cn"
538 538
     source: hosted
539 539
     version: "1.0.1"
540 540
   win32:
541 541
     dependency: transitive
542 542
     description:
543 543
       name: win32
544
-      url: "https://pub.dartlang.org"
544
+      url: "https://pub.flutter-io.cn"
545 545
     source: hosted
546 546
     version: "2.5.2"
547 547
   xdg_directories:
548 548
     dependency: transitive
549 549
     description:
550 550
       name: xdg_directories
551
-      url: "https://pub.dartlang.org"
551
+      url: "https://pub.flutter-io.cn"
552 552
     source: hosted
553 553
     version: "0.2.0+1"
554 554
   yaml:
555 555
     dependency: transitive
556 556
     description:
557 557
       name: yaml
558
-      url: "https://pub.dartlang.org"
558
+      url: "https://pub.flutter-io.cn"
559 559
     source: hosted
560 560
     version: "3.1.0"
561 561
 sdks: