Parcourir la source

Merge branch 'master' of http://git.ycjcjy.com/nanyang/farmer_client

[baozhangchao] il y a 3 ans
Parent
révision
b1310a5df5
2 fichiers modifiés avec 54 ajouts et 55 suppressions
  1. 4
    5
      lib/main.dart
  2. 50
    50
      pubspec.lock

+ 4
- 5
lib/main.dart Voir le fichier

@@ -66,12 +66,11 @@ class _MyHomePageState extends State<MyHomePage> {
66 66
   @override
67 67
   Widget build(BuildContext context) {
68 68
 
69
-    ScreenUtil.init(
70
-        BoxConstraints(
71
-            maxWidth: MediaQuery.of(context).size.width,
72
-            maxHeight: MediaQuery.of(context).size.height),
69
+    ScreenUtil.init(context,
70
+        deviceSize: Size(
71
+            MediaQuery.of(context).size.width,
72
+            MediaQuery.of(context).size.height),
73 73
         designSize: const Size(375, 812),
74
-        context: context,
75 74
         minTextAdapt: true,
76 75
         orientation: Orientation.portrait);
77 76
     // var find = Get.find(tag: 'user');

+ 50
- 50
pubspec.lock Voir le fichier

@@ -5,133 +5,133 @@ 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: "38.0.0"
11 11
   analyzer:
12 12
     dependency: transitive
13 13
     description:
14 14
       name: analyzer
15
-      url: "https://pub.dartlang.org"
15
+      url: "https://pub.flutter-io.cn"
16 16
     source: hosted
17 17
     version: "3.4.1"
18 18
   args:
19 19
     dependency: transitive
20 20
     description:
21 21
       name: args
22
-      url: "https://pub.dartlang.org"
22
+      url: "https://pub.flutter-io.cn"
23 23
     source: hosted
24 24
     version: "2.3.0"
25 25
   async:
26 26
     dependency: transitive
27 27
     description:
28 28
       name: async
29
-      url: "https://pub.dartlang.org"
29
+      url: "https://pub.flutter-io.cn"
30 30
     source: hosted
31 31
     version: "2.8.2"
32 32
   boolean_selector:
33 33
     dependency: transitive
34 34
     description:
35 35
       name: boolean_selector
36
-      url: "https://pub.dartlang.org"
36
+      url: "https://pub.flutter-io.cn"
37 37
     source: hosted
38 38
     version: "2.1.0"
39 39
   build:
40 40
     dependency: transitive
41 41
     description:
42 42
       name: build
43
-      url: "https://pub.dartlang.org"
43
+      url: "https://pub.flutter-io.cn"
44 44
     source: hosted
45 45
     version: "2.2.1"
46 46
   build_config:
47 47
     dependency: transitive
48 48
     description:
49 49
       name: build_config
50
-      url: "https://pub.dartlang.org"
50
+      url: "https://pub.flutter-io.cn"
51 51
     source: hosted
52 52
     version: "1.0.0"
53 53
   characters:
54 54
     dependency: transitive
55 55
     description:
56 56
       name: characters
57
-      url: "https://pub.dartlang.org"
57
+      url: "https://pub.flutter-io.cn"
58 58
     source: hosted
59 59
     version: "1.2.0"
60 60
   charcode:
61 61
     dependency: transitive
62 62
     description:
63 63
       name: charcode
64
-      url: "https://pub.dartlang.org"
64
+      url: "https://pub.flutter-io.cn"
65 65
     source: hosted
66 66
     version: "1.3.1"
67 67
   checked_yaml:
68 68
     dependency: transitive
69 69
     description:
70 70
       name: checked_yaml
71
-      url: "https://pub.dartlang.org"
71
+      url: "https://pub.flutter-io.cn"
72 72
     source: hosted
73 73
     version: "2.0.1"
74 74
   clock:
75 75
     dependency: transitive
76 76
     description:
77 77
       name: clock
78
-      url: "https://pub.dartlang.org"
78
+      url: "https://pub.flutter-io.cn"
79 79
     source: hosted
80 80
     version: "1.1.0"
81 81
   collection:
82 82
     dependency: transitive
83 83
     description:
84 84
       name: collection
85
-      url: "https://pub.dartlang.org"
85
+      url: "https://pub.flutter-io.cn"
86 86
     source: hosted
87 87
     version: "1.15.0"
88 88
   convert:
89 89
     dependency: transitive
90 90
     description:
91 91
       name: convert
92
-      url: "https://pub.dartlang.org"
92
+      url: "https://pub.flutter-io.cn"
93 93
     source: hosted
94 94
     version: "3.0.1"
95 95
   crypto:
96 96
     dependency: transitive
97 97
     description:
98 98
       name: crypto
99
-      url: "https://pub.dartlang.org"
99
+      url: "https://pub.flutter-io.cn"
100 100
     source: hosted
101 101
     version: "3.0.1"
102 102
   cupertino_icons:
103 103
     dependency: "direct main"
104 104
     description:
105 105
       name: cupertino_icons
106
-      url: "https://pub.dartlang.org"
106
+      url: "https://pub.flutter-io.cn"
107 107
     source: hosted
108 108
     version: "1.0.4"
109 109
   dart_style:
110 110
     dependency: transitive
111 111
     description:
112 112
       name: dart_style
113
-      url: "https://pub.dartlang.org"
113
+      url: "https://pub.flutter-io.cn"
114 114
     source: hosted
115 115
     version: "2.2.2"
116 116
   dio:
117 117
     dependency: "direct main"
118 118
     description:
119 119
       name: dio
120
-      url: "https://pub.dartlang.org"
120
+      url: "https://pub.flutter-io.cn"
121 121
     source: hosted
122 122
     version: "4.0.6"
123 123
   fake_async:
124 124
     dependency: transitive
125 125
     description:
126 126
       name: fake_async
127
-      url: "https://pub.dartlang.org"
127
+      url: "https://pub.flutter-io.cn"
128 128
     source: hosted
129 129
     version: "1.2.0"
130 130
   file:
131 131
     dependency: transitive
132 132
     description:
133 133
       name: file
134
-      url: "https://pub.dartlang.org"
134
+      url: "https://pub.flutter-io.cn"
135 135
     source: hosted
136 136
     version: "6.1.2"
137 137
   flutter:
@@ -143,16 +143,16 @@ packages:
143 143
     dependency: "direct dev"
144 144
     description:
145 145
       name: flutter_lints
146
-      url: "https://pub.dartlang.org"
146
+      url: "https://pub.flutter-io.cn"
147 147
     source: hosted
148 148
     version: "1.0.4"
149 149
   flutter_screenutil:
150 150
     dependency: "direct main"
151 151
     description:
152 152
       name: flutter_screenutil
153
-      url: "https://pub.dartlang.org"
153
+      url: "https://pub.flutter-io.cn"
154 154
     source: hosted
155
-    version: "5.3.1"
155
+    version: "5.4.0"
156 156
   flutter_test:
157 157
     dependency: "direct dev"
158 158
     description: flutter
@@ -167,112 +167,112 @@ packages:
167 167
     dependency: "direct dev"
168 168
     description:
169 169
       name: fluttertoast
170
-      url: "https://pub.dartlang.org"
170
+      url: "https://pub.flutter-io.cn"
171 171
     source: hosted
172 172
     version: "8.0.9"
173 173
   get:
174 174
     dependency: "direct main"
175 175
     description:
176 176
       name: get
177
-      url: "https://pub.dartlang.org"
177
+      url: "https://pub.flutter-io.cn"
178 178
     source: hosted
179 179
     version: "4.6.1"
180 180
   glob:
181 181
     dependency: transitive
182 182
     description:
183 183
       name: glob
184
-      url: "https://pub.dartlang.org"
184
+      url: "https://pub.flutter-io.cn"
185 185
     source: hosted
186 186
     version: "2.0.2"
187 187
   http_parser:
188 188
     dependency: transitive
189 189
     description:
190 190
       name: http_parser
191
-      url: "https://pub.dartlang.org"
191
+      url: "https://pub.flutter-io.cn"
192 192
     source: hosted
193 193
     version: "4.0.0"
194 194
   js:
195 195
     dependency: transitive
196 196
     description:
197 197
       name: js
198
-      url: "https://pub.dartlang.org"
198
+      url: "https://pub.flutter-io.cn"
199 199
     source: hosted
200 200
     version: "0.6.3"
201 201
   json_annotation:
202 202
     dependency: transitive
203 203
     description:
204 204
       name: json_annotation
205
-      url: "https://pub.dartlang.org"
205
+      url: "https://pub.flutter-io.cn"
206 206
     source: hosted
207 207
     version: "4.4.0"
208 208
   json_serializable:
209 209
     dependency: "direct main"
210 210
     description:
211 211
       name: json_serializable
212
-      url: "https://pub.dartlang.org"
212
+      url: "https://pub.flutter-io.cn"
213 213
     source: hosted
214 214
     version: "6.1.5"
215 215
   lints:
216 216
     dependency: transitive
217 217
     description:
218 218
       name: lints
219
-      url: "https://pub.dartlang.org"
219
+      url: "https://pub.flutter-io.cn"
220 220
     source: hosted
221 221
     version: "1.0.1"
222 222
   logging:
223 223
     dependency: transitive
224 224
     description:
225 225
       name: logging
226
-      url: "https://pub.dartlang.org"
226
+      url: "https://pub.flutter-io.cn"
227 227
     source: hosted
228 228
     version: "1.0.2"
229 229
   matcher:
230 230
     dependency: transitive
231 231
     description:
232 232
       name: matcher
233
-      url: "https://pub.dartlang.org"
233
+      url: "https://pub.flutter-io.cn"
234 234
     source: hosted
235 235
     version: "0.12.11"
236 236
   material_color_utilities:
237 237
     dependency: transitive
238 238
     description:
239 239
       name: material_color_utilities
240
-      url: "https://pub.dartlang.org"
240
+      url: "https://pub.flutter-io.cn"
241 241
     source: hosted
242 242
     version: "0.1.3"
243 243
   meta:
244 244
     dependency: transitive
245 245
     description:
246 246
       name: meta
247
-      url: "https://pub.dartlang.org"
247
+      url: "https://pub.flutter-io.cn"
248 248
     source: hosted
249 249
     version: "1.7.0"
250 250
   package_config:
251 251
     dependency: transitive
252 252
     description:
253 253
       name: package_config
254
-      url: "https://pub.dartlang.org"
254
+      url: "https://pub.flutter-io.cn"
255 255
     source: hosted
256 256
     version: "2.0.2"
257 257
   path:
258 258
     dependency: transitive
259 259
     description:
260 260
       name: path
261
-      url: "https://pub.dartlang.org"
261
+      url: "https://pub.flutter-io.cn"
262 262
     source: hosted
263 263
     version: "1.8.0"
264 264
   pub_semver:
265 265
     dependency: transitive
266 266
     description:
267 267
       name: pub_semver
268
-      url: "https://pub.dartlang.org"
268
+      url: "https://pub.flutter-io.cn"
269 269
     source: hosted
270 270
     version: "2.1.1"
271 271
   pubspec_parse:
272 272
     dependency: transitive
273 273
     description:
274 274
       name: pubspec_parse
275
-      url: "https://pub.dartlang.org"
275
+      url: "https://pub.flutter-io.cn"
276 276
     source: hosted
277 277
     version: "1.2.0"
278 278
   sky_engine:
@@ -284,84 +284,84 @@ packages:
284 284
     dependency: transitive
285 285
     description:
286 286
       name: source_gen
287
-      url: "https://pub.dartlang.org"
287
+      url: "https://pub.flutter-io.cn"
288 288
     source: hosted
289 289
     version: "1.2.1"
290 290
   source_helper:
291 291
     dependency: transitive
292 292
     description:
293 293
       name: source_helper
294
-      url: "https://pub.dartlang.org"
294
+      url: "https://pub.flutter-io.cn"
295 295
     source: hosted
296 296
     version: "1.3.1"
297 297
   source_span:
298 298
     dependency: transitive
299 299
     description:
300 300
       name: source_span
301
-      url: "https://pub.dartlang.org"
301
+      url: "https://pub.flutter-io.cn"
302 302
     source: hosted
303 303
     version: "1.8.1"
304 304
   stack_trace:
305 305
     dependency: transitive
306 306
     description:
307 307
       name: stack_trace
308
-      url: "https://pub.dartlang.org"
308
+      url: "https://pub.flutter-io.cn"
309 309
     source: hosted
310 310
     version: "1.10.0"
311 311
   stream_channel:
312 312
     dependency: transitive
313 313
     description:
314 314
       name: stream_channel
315
-      url: "https://pub.dartlang.org"
315
+      url: "https://pub.flutter-io.cn"
316 316
     source: hosted
317 317
     version: "2.1.0"
318 318
   string_scanner:
319 319
     dependency: transitive
320 320
     description:
321 321
       name: string_scanner
322
-      url: "https://pub.dartlang.org"
322
+      url: "https://pub.flutter-io.cn"
323 323
     source: hosted
324 324
     version: "1.1.0"
325 325
   term_glyph:
326 326
     dependency: transitive
327 327
     description:
328 328
       name: term_glyph
329
-      url: "https://pub.dartlang.org"
329
+      url: "https://pub.flutter-io.cn"
330 330
     source: hosted
331 331
     version: "1.2.0"
332 332
   test_api:
333 333
     dependency: transitive
334 334
     description:
335 335
       name: test_api
336
-      url: "https://pub.dartlang.org"
336
+      url: "https://pub.flutter-io.cn"
337 337
     source: hosted
338 338
     version: "0.4.8"
339 339
   typed_data:
340 340
     dependency: transitive
341 341
     description:
342 342
       name: typed_data
343
-      url: "https://pub.dartlang.org"
343
+      url: "https://pub.flutter-io.cn"
344 344
     source: hosted
345 345
     version: "1.3.0"
346 346
   vector_math:
347 347
     dependency: transitive
348 348
     description:
349 349
       name: vector_math
350
-      url: "https://pub.dartlang.org"
350
+      url: "https://pub.flutter-io.cn"
351 351
     source: hosted
352 352
     version: "2.1.1"
353 353
   watcher:
354 354
     dependency: transitive
355 355
     description:
356 356
       name: watcher
357
-      url: "https://pub.dartlang.org"
357
+      url: "https://pub.flutter-io.cn"
358 358
     source: hosted
359 359
     version: "1.0.1"
360 360
   yaml:
361 361
     dependency: transitive
362 362
     description:
363 363
       name: yaml
364
-      url: "https://pub.dartlang.org"
364
+      url: "https://pub.flutter-io.cn"
365 365
     source: hosted
366 366
     version: "3.1.0"
367 367
 sdks: