张延森 3 gadus atpakaļ
vecāks
revīzija
fcad519325
4 mainītis faili ar 89 papildinājumiem un 188 dzēšanām
  1. 3
    114
      lib/main.dart
  2. 0
    1
      lib/pages/main/index.dart
  3. 13
    0
      lib/theme.dart
  4. 73
    73
      pubspec.lock

+ 3
- 114
lib/main.dart Parādīt failu

@@ -1,5 +1,5 @@
1 1
 
2
-import 'package:farmer_client/widgets/CarsCard.dart';
2
+import 'package:farmer_client/theme.dart';
3 3
 import 'package:flutter/material.dart';
4 4
 import 'package:get/get.dart';
5 5
 import 'package:get_storage/get_storage.dart';
@@ -7,13 +7,11 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
7 7
 
8 8
 import 'models/index.dart';
9 9
 import 'routes/index.dart';
10
-import 'widgets/OrderListCard.dart';
11
-
12 10
 
13 11
 void main() async {
14 12
   await GetStorage.init();
15 13
 
16
-  runApp(MyApp());
14
+  runApp(const MyApp());
17 15
 }
18 16
 
19 17
 class MyApp extends StatelessWidget {
@@ -30,6 +28,7 @@ class MyApp extends StatelessWidget {
30 28
       splitScreenMode: true,
31 29
       builder: (_) {
32 30
         return GetMaterialApp(
31
+          theme: getTheme(),
33 32
           initialRoute: '/splash',
34 33
           defaultTransition: Transition.native,
35 34
           routingCallback: routingCallback,
@@ -38,115 +37,5 @@ class MyApp extends StatelessWidget {
38 37
         );
39 38
       },
40 39
     );
41
-
42
-    // return MaterialApp(
43
-    //   title: 'Flutter Demo',
44
-    //   theme: ThemeData(
45
-    //     // This is the theme of your application.
46
-    //     //
47
-    //     // Try running your application with "flutter run". You'll see the
48
-    //     // application has a blue toolbar. Then, without quitting the app, try
49
-    //     // changing the primarySwatch below to Colors.green and then invoke
50
-    //     // "hot reload" (press "r" in the console where you ran "flutter run",
51
-    //     // or simply save your changes to "hot reload" in a Flutter IDE).
52
-    //     // Notice that the counter didn't reset back to zero; the application
53
-    //     // is not restarted.
54
-    //     primarySwatch: Colors.blue,
55
-    //   ),
56
-    //   home:  const MyHomePage(title: 'Flutter Demo Home Page'),
57
-    //
58
-    // );
59
-  }
60
-}
61
-
62
-class MyHomePage extends StatefulWidget {
63
-  const MyHomePage({Key? key,}) : super(key: key);
64
-
65
-  // This widget is the home page of your application. It is stateful, meaning
66
-  // that it has a State object (defined below) that contains fields that affect
67
-  // how it looks.
68
-
69
-  // This class is the configuration for the state. It holds the values (in this
70
-  // case the title) provided by the parent (in this case the App widget) and
71
-  // used by the build method of the State. Fields in a Widget subclass are
72
-  // always marked "final".
73
-
74
-  // final String title;
75
-
76
-  @override
77
-  State<MyHomePage> createState() => _MyHomePageState();
78
-}
79
-
80
-class _MyHomePageState extends State<MyHomePage> {
81
-  int _counter = 0;
82
-
83
-
84
-  @override
85
-  Widget build(BuildContext context) {
86
-    // var find = Get.find(tag: 'user');
87
-
88
-    // This method is rerun every time setState is called, for instance as done
89
-    // by the _incrementCounter method above.
90
-    //
91
-    // The Flutter framework has been optimized to make rerunning build methods
92
-    // fast, so that you can just rebuild anything that needs updating rather
93
-    // than having to individually change instances of widgets.
94
-    return Scaffold(
95
-      appBar: AppBar(
96
-        backgroundColor: Colors.amber,
97
-        // Here we take the value from the MyHomePage object that was created by
98
-        // the App.build method, and use it to set our appbar title.
99
-        title: Text('widget.title'),
100
-      ),
101
-      body: Center(
102
-        // Center is a layout widget. It takes a single child and positions it
103
-        // in the middle of the parent.
104
-        child: Column(
105
-          // Column is also a layout widget. It takes a list of children and
106
-          // arranges them vertically. By default, it sizes itself to fit its
107
-          // children horizontally, and tries to be as tall as its parent.
108
-          //
109
-          // Invoke "debug painting" (press "p" in the console, choose the
110
-          // "Toggle Debug Paint" action from the Flutter Inspector in Android
111
-          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
112
-          // to see the wireframe for each widget.
113
-          //
114
-          // Column has various properties to control how it sizes itself and
115
-          // how it positions its children. Here we use mainAxisAlignment to
116
-          // center the children vertically; the main axis here is the vertical
117
-          // axis because Columns are vertical (the cross axis would be
118
-          // horizontal).
119
-          mainAxisAlignment: MainAxisAlignment.center,
120
-          children:  <Widget>[
121
-
122
-            // Text(
123
-            //   '$_counter',
124
-            //   style: Theme.of(context).textTheme.headline4,
125
-            // ),
126
-            // DefaultButton(
127
-            //   margin: EdgeInsets.fromLTRB(0, 30.0, 0, 0), //可选配置,自定义控件中有默认配置
128
-            //   text: "登陆",
129
-            //   width: 120.0,
130
-            //   height: 50.0,
131
-            //   fontSize: 20.0,
132
-            //   backColor: Color(0xffff703b),
133
-            //   color: Colors.white,
134
-            //   onPressed: () {
135
-            //     Navigator.push(
136
-            //       context,
137
-            //       MaterialPageRoute(builder: (context) {
138
-            //         return MyRouteLogin();
139
-            //       }),
140
-            //     );
141
-            //   },
142
-            // ),
143
-            CarsCard(),
144
-            // Search()
145
-            // OrderListCard()
146
-          ],
147
-        ),
148
-      ),
149
-      // This trailing comma makes auto-formatting nicer for build methods.
150
-    );
151 40
   }
152 41
 }

+ 0
- 1
lib/pages/main/index.dart Parādīt failu

@@ -19,7 +19,6 @@ class _MainPageState extends State<MainPage> {
19 19
       appBar:  AppBar(
20 20
         title:  Text('我的'),
21 21
         leading:  Icon(Icons.arrow_back_ios),
22
-        backgroundColor: Color(0xff4ceebe),
23 22
         // backgroundColor: Colors.transparent,
24 23
         centerTitle: true,
25 24
 

+ 13
- 0
lib/theme.dart Parādīt failu

@@ -0,0 +1,13 @@
1
+
2
+import 'package:flutter/material.dart';
3
+
4
+ThemeData getTheme() {
5
+  return ThemeData(
6
+    appBarTheme: const AppBarTheme(
7
+      backgroundColor: Colors.transparent,
8
+      foregroundColor: Color(0xFF333333),
9
+      elevation: 0,
10
+    ),
11
+    backgroundColor: Colors.white,
12
+  );
13
+}

+ 73
- 73
pubspec.lock Parādīt failu

@@ -5,140 +5,140 @@ 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
-    version: "38.0.0"
10
+    version: "39.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
-    version: "3.4.1"
17
+    version: "4.0.0"
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
-    version: "2.2.1"
45
+    version: "2.3.0"
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
-    version: "2.2.2"
115
+    version: "2.2.3"
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
   ffi:
131 131
     dependency: transitive
132 132
     description:
133 133
       name: ffi
134
-      url: "https://pub.dartlang.org"
134
+      url: "https://pub.flutter-io.cn"
135 135
     source: hosted
136 136
     version: "1.1.2"
137 137
   file:
138 138
     dependency: transitive
139 139
     description:
140 140
       name: file
141
-      url: "https://pub.dartlang.org"
141
+      url: "https://pub.flutter-io.cn"
142 142
     source: hosted
143 143
     version: "6.1.2"
144 144
   flutter:
@@ -150,14 +150,14 @@ packages:
150 150
     dependency: "direct dev"
151 151
     description:
152 152
       name: flutter_lints
153
-      url: "https://pub.dartlang.org"
153
+      url: "https://pub.flutter-io.cn"
154 154
     source: hosted
155 155
     version: "1.0.4"
156 156
   flutter_screenutil:
157 157
     dependency: "direct main"
158 158
     description:
159 159
       name: flutter_screenutil
160
-      url: "https://pub.dartlang.org"
160
+      url: "https://pub.flutter-io.cn"
161 161
     source: hosted
162 162
     version: "5.4.0"
163 163
   flutter_test:
@@ -174,210 +174,210 @@ packages:
174 174
     dependency: "direct main"
175 175
     description:
176 176
       name: fluttertoast
177
-      url: "https://pub.dartlang.org"
177
+      url: "https://pub.flutter-io.cn"
178 178
     source: hosted
179 179
     version: "8.0.9"
180 180
   get:
181 181
     dependency: "direct main"
182 182
     description:
183 183
       name: get
184
-      url: "https://pub.dartlang.org"
184
+      url: "https://pub.flutter-io.cn"
185 185
     source: hosted
186 186
     version: "4.6.1"
187 187
   get_storage:
188 188
     dependency: "direct main"
189 189
     description:
190 190
       name: get_storage
191
-      url: "https://pub.dartlang.org"
191
+      url: "https://pub.flutter-io.cn"
192 192
     source: hosted
193 193
     version: "2.0.3"
194 194
   glob:
195 195
     dependency: transitive
196 196
     description:
197 197
       name: glob
198
-      url: "https://pub.dartlang.org"
198
+      url: "https://pub.flutter-io.cn"
199 199
     source: hosted
200 200
     version: "2.0.2"
201 201
   http_parser:
202 202
     dependency: transitive
203 203
     description:
204 204
       name: http_parser
205
-      url: "https://pub.dartlang.org"
205
+      url: "https://pub.flutter-io.cn"
206 206
     source: hosted
207 207
     version: "4.0.0"
208 208
   js:
209 209
     dependency: transitive
210 210
     description:
211 211
       name: js
212
-      url: "https://pub.dartlang.org"
212
+      url: "https://pub.flutter-io.cn"
213 213
     source: hosted
214 214
     version: "0.6.3"
215 215
   json_annotation:
216 216
     dependency: transitive
217 217
     description:
218 218
       name: json_annotation
219
-      url: "https://pub.dartlang.org"
219
+      url: "https://pub.flutter-io.cn"
220 220
     source: hosted
221 221
     version: "4.4.0"
222 222
   json_serializable:
223 223
     dependency: "direct main"
224 224
     description:
225 225
       name: json_serializable
226
-      url: "https://pub.dartlang.org"
226
+      url: "https://pub.flutter-io.cn"
227 227
     source: hosted
228
-    version: "6.1.5"
228
+    version: "6.1.6"
229 229
   lints:
230 230
     dependency: transitive
231 231
     description:
232 232
       name: lints
233
-      url: "https://pub.dartlang.org"
233
+      url: "https://pub.flutter-io.cn"
234 234
     source: hosted
235 235
     version: "1.0.1"
236 236
   location:
237 237
     dependency: "direct main"
238 238
     description:
239 239
       name: location
240
-      url: "https://pub.dartlang.org"
240
+      url: "https://pub.flutter-io.cn"
241 241
     source: hosted
242 242
     version: "4.3.0"
243 243
   location_platform_interface:
244 244
     dependency: transitive
245 245
     description:
246 246
       name: location_platform_interface
247
-      url: "https://pub.dartlang.org"
247
+      url: "https://pub.flutter-io.cn"
248 248
     source: hosted
249 249
     version: "2.3.0"
250 250
   location_web:
251 251
     dependency: transitive
252 252
     description:
253 253
       name: location_web
254
-      url: "https://pub.dartlang.org"
254
+      url: "https://pub.flutter-io.cn"
255 255
     source: hosted
256 256
     version: "3.1.1"
257 257
   logging:
258 258
     dependency: transitive
259 259
     description:
260 260
       name: logging
261
-      url: "https://pub.dartlang.org"
261
+      url: "https://pub.flutter-io.cn"
262 262
     source: hosted
263 263
     version: "1.0.2"
264 264
   matcher:
265 265
     dependency: transitive
266 266
     description:
267 267
       name: matcher
268
-      url: "https://pub.dartlang.org"
268
+      url: "https://pub.flutter-io.cn"
269 269
     source: hosted
270 270
     version: "0.12.11"
271 271
   material_color_utilities:
272 272
     dependency: transitive
273 273
     description:
274 274
       name: material_color_utilities
275
-      url: "https://pub.dartlang.org"
275
+      url: "https://pub.flutter-io.cn"
276 276
     source: hosted
277 277
     version: "0.1.3"
278 278
   meta:
279 279
     dependency: transitive
280 280
     description:
281 281
       name: meta
282
-      url: "https://pub.dartlang.org"
282
+      url: "https://pub.flutter-io.cn"
283 283
     source: hosted
284 284
     version: "1.7.0"
285 285
   package_config:
286 286
     dependency: transitive
287 287
     description:
288 288
       name: package_config
289
-      url: "https://pub.dartlang.org"
289
+      url: "https://pub.flutter-io.cn"
290 290
     source: hosted
291 291
     version: "2.0.2"
292 292
   path:
293 293
     dependency: transitive
294 294
     description:
295 295
       name: path
296
-      url: "https://pub.dartlang.org"
296
+      url: "https://pub.flutter-io.cn"
297 297
     source: hosted
298 298
     version: "1.8.0"
299 299
   path_provider:
300 300
     dependency: transitive
301 301
     description:
302 302
       name: path_provider
303
-      url: "https://pub.dartlang.org"
303
+      url: "https://pub.flutter-io.cn"
304 304
     source: hosted
305 305
     version: "2.0.9"
306 306
   path_provider_android:
307 307
     dependency: transitive
308 308
     description:
309 309
       name: path_provider_android
310
-      url: "https://pub.dartlang.org"
310
+      url: "https://pub.flutter-io.cn"
311 311
     source: hosted
312 312
     version: "2.0.12"
313 313
   path_provider_ios:
314 314
     dependency: transitive
315 315
     description:
316 316
       name: path_provider_ios
317
-      url: "https://pub.dartlang.org"
317
+      url: "https://pub.flutter-io.cn"
318 318
     source: hosted
319 319
     version: "2.0.8"
320 320
   path_provider_linux:
321 321
     dependency: transitive
322 322
     description:
323 323
       name: path_provider_linux
324
-      url: "https://pub.dartlang.org"
324
+      url: "https://pub.flutter-io.cn"
325 325
     source: hosted
326 326
     version: "2.1.5"
327 327
   path_provider_macos:
328 328
     dependency: transitive
329 329
     description:
330 330
       name: path_provider_macos
331
-      url: "https://pub.dartlang.org"
331
+      url: "https://pub.flutter-io.cn"
332 332
     source: hosted
333 333
     version: "2.0.5"
334 334
   path_provider_platform_interface:
335 335
     dependency: transitive
336 336
     description:
337 337
       name: path_provider_platform_interface
338
-      url: "https://pub.dartlang.org"
338
+      url: "https://pub.flutter-io.cn"
339 339
     source: hosted
340 340
     version: "2.0.3"
341 341
   path_provider_windows:
342 342
     dependency: transitive
343 343
     description:
344 344
       name: path_provider_windows
345
-      url: "https://pub.dartlang.org"
345
+      url: "https://pub.flutter-io.cn"
346 346
     source: hosted
347 347
     version: "2.0.5"
348 348
   platform:
349 349
     dependency: transitive
350 350
     description:
351 351
       name: platform
352
-      url: "https://pub.dartlang.org"
352
+      url: "https://pub.flutter-io.cn"
353 353
     source: hosted
354 354
     version: "3.1.0"
355 355
   plugin_platform_interface:
356 356
     dependency: transitive
357 357
     description:
358 358
       name: plugin_platform_interface
359
-      url: "https://pub.dartlang.org"
359
+      url: "https://pub.flutter-io.cn"
360 360
     source: hosted
361 361
     version: "2.1.2"
362 362
   process:
363 363
     dependency: transitive
364 364
     description:
365 365
       name: process
366
-      url: "https://pub.dartlang.org"
366
+      url: "https://pub.flutter-io.cn"
367 367
     source: hosted
368 368
     version: "4.2.4"
369 369
   pub_semver:
370 370
     dependency: transitive
371 371
     description:
372 372
       name: pub_semver
373
-      url: "https://pub.dartlang.org"
373
+      url: "https://pub.flutter-io.cn"
374 374
     source: hosted
375 375
     version: "2.1.1"
376 376
   pubspec_parse:
377 377
     dependency: transitive
378 378
     description:
379 379
       name: pubspec_parse
380
-      url: "https://pub.dartlang.org"
380
+      url: "https://pub.flutter-io.cn"
381 381
     source: hosted
382 382
     version: "1.2.0"
383 383
   sky_engine:
@@ -389,98 +389,98 @@ packages:
389 389
     dependency: transitive
390 390
     description:
391 391
       name: source_gen
392
-      url: "https://pub.dartlang.org"
392
+      url: "https://pub.flutter-io.cn"
393 393
     source: hosted
394
-    version: "1.2.1"
394
+    version: "1.2.2"
395 395
   source_helper:
396 396
     dependency: transitive
397 397
     description:
398 398
       name: source_helper
399
-      url: "https://pub.dartlang.org"
399
+      url: "https://pub.flutter-io.cn"
400 400
     source: hosted
401
-    version: "1.3.1"
401
+    version: "1.3.2"
402 402
   source_span:
403 403
     dependency: transitive
404 404
     description:
405 405
       name: source_span
406
-      url: "https://pub.dartlang.org"
406
+      url: "https://pub.flutter-io.cn"
407 407
     source: hosted
408 408
     version: "1.8.1"
409 409
   stack_trace:
410 410
     dependency: transitive
411 411
     description:
412 412
       name: stack_trace
413
-      url: "https://pub.dartlang.org"
413
+      url: "https://pub.flutter-io.cn"
414 414
     source: hosted
415 415
     version: "1.10.0"
416 416
   stream_channel:
417 417
     dependency: transitive
418 418
     description:
419 419
       name: stream_channel
420
-      url: "https://pub.dartlang.org"
420
+      url: "https://pub.flutter-io.cn"
421 421
     source: hosted
422 422
     version: "2.1.0"
423 423
   string_scanner:
424 424
     dependency: transitive
425 425
     description:
426 426
       name: string_scanner
427
-      url: "https://pub.dartlang.org"
427
+      url: "https://pub.flutter-io.cn"
428 428
     source: hosted
429 429
     version: "1.1.0"
430 430
   term_glyph:
431 431
     dependency: transitive
432 432
     description:
433 433
       name: term_glyph
434
-      url: "https://pub.dartlang.org"
434
+      url: "https://pub.flutter-io.cn"
435 435
     source: hosted
436 436
     version: "1.2.0"
437 437
   test_api:
438 438
     dependency: transitive
439 439
     description:
440 440
       name: test_api
441
-      url: "https://pub.dartlang.org"
441
+      url: "https://pub.flutter-io.cn"
442 442
     source: hosted
443 443
     version: "0.4.8"
444 444
   typed_data:
445 445
     dependency: transitive
446 446
     description:
447 447
       name: typed_data
448
-      url: "https://pub.dartlang.org"
448
+      url: "https://pub.flutter-io.cn"
449 449
     source: hosted
450 450
     version: "1.3.0"
451 451
   vector_math:
452 452
     dependency: transitive
453 453
     description:
454 454
       name: vector_math
455
-      url: "https://pub.dartlang.org"
455
+      url: "https://pub.flutter-io.cn"
456 456
     source: hosted
457 457
     version: "2.1.1"
458 458
   watcher:
459 459
     dependency: transitive
460 460
     description:
461 461
       name: watcher
462
-      url: "https://pub.dartlang.org"
462
+      url: "https://pub.flutter-io.cn"
463 463
     source: hosted
464 464
     version: "1.0.1"
465 465
   win32:
466 466
     dependency: transitive
467 467
     description:
468 468
       name: win32
469
-      url: "https://pub.dartlang.org"
469
+      url: "https://pub.flutter-io.cn"
470 470
     source: hosted
471 471
     version: "2.5.1"
472 472
   xdg_directories:
473 473
     dependency: transitive
474 474
     description:
475 475
       name: xdg_directories
476
-      url: "https://pub.dartlang.org"
476
+      url: "https://pub.flutter-io.cn"
477 477
     source: hosted
478 478
     version: "0.2.0+1"
479 479
   yaml:
480 480
     dependency: transitive
481 481
     description:
482 482
       name: yaml
483
-      url: "https://pub.dartlang.org"
483
+      url: "https://pub.flutter-io.cn"
484 484
     source: hosted
485 485
     version: "3.1.0"
486 486
 sdks: