李志伟 3 anni fa
parent
commit
b536c9ad40

BIN
images/machinery/date.png Vedi File


BIN
images/machinery/greenMachinery.png Vedi File


BIN
images/machinery/mIcon.png Vedi File


BIN
images/machinery/micon2.png Vedi File


BIN
images/machinery/orangeMachinery.png Vedi File


BIN
images/machinery/repairMachinery.png Vedi File


+ 16
- 61
lib/models/entities/person.dart Vedi File

@@ -1,59 +1,15 @@
1
-// class Person {
2
-//   String? personId;
3
-//   String? appId;
4
-//   String? openid;
5
-//   String? nickName;
6
-//   String? userName;
7
-//   String? avatar;
8
-//   int? sex;
9
-//   String? phone;
10
-//   String? userId;
11
-//   int? status;
12
-//   String? createDate;
13
-//
14
-//   Person();
15
-//
16
-//   Person.fromJson(Map<String, dynamic> json)
17
-//       : personId = json["personId"],
18
-//         appId = json["appId"],
19
-//         openid = json["openid"],
20
-//         nickName = json["nickName"],
21
-//         userName = json["userName"],
22
-//         avatar = json["avatar"],
23
-//         sex = json["sex"],
24
-//         phone = json["phone"],
25
-//         userId = json["userId"],
26
-//         status = json["status"],
27
-//         createDate = json["createDate"];
28
-//
29
-//   Map<String, dynamic> toJson() => {
30
-//         'personId': personId,
31
-//         'appId': appId,
32
-//         'openid': openid,
33
-//         'nickName': nickName,
34
-//         'userName': userName,
35
-//         'avatar': avatar,
36
-//         'sex': sex,
37
-//         'phone': phone,
38
-//         'userId': userId,
39
-//         'status': status,
40
-//         'createDate': createDate,
41
-//       };
42
-// }
43
-
44
-
45 1
 class Person {
46 2
   String? personId;
47 3
   String? appId;
48 4
   String? openid;
49 5
   String? nickName;
6
+  String? userName;
50 7
   String? avatar;
51 8
   num? sex;
52 9
   String? phone;
53 10
   String? userId;
54 11
   num? status;
55 12
   String? createDate;
56
-  String? identity;
57 13
   bool? isOrgManager;
58 14
 
59 15
   Person();
@@ -63,28 +19,27 @@ class Person {
63 19
         appId = json["appId"],
64 20
         openid = json["openid"],
65 21
         nickName = json["nickName"],
22
+        userName = json["userName"],
66 23
         avatar = json["avatar"],
67 24
         sex = json["sex"],
68 25
         phone = json["phone"],
69 26
         userId = json["userId"],
70 27
         status = json["status"],
71 28
         createDate = json["createDate"],
72
-        isOrgManager = json["isOrgManager"],
73
-        identity = json["identity"];
29
+        isOrgManager = json["isOrgManager"];
74 30
 
75 31
   Map<String, dynamic> toJson() => {
76
-    'personId': personId,
77
-    'appId': appId,
78
-    'openid': openid,
79
-    'nickName': nickName,
80
-    'avatar': avatar,
81
-    'sex': sex,
82
-    'phone': phone,
83
-    'userId': userId,
84
-    'status': status,
85
-    'createDate': createDate,
86
-    'isOrgManager': isOrgManager,
87
-    'identity': identity,
88
-
89
-  };
32
+        'personId': personId,
33
+        'appId': appId,
34
+        'openid': openid,
35
+        'nickName': nickName,
36
+        'userName': userName,
37
+        'avatar': avatar,
38
+        'sex': sex,
39
+        'phone': phone,
40
+        'userId': userId,
41
+        'status': status,
42
+        'createDate': createDate,
43
+        'isOrgManager': isOrgManager,
44
+      };
90 45
 }

+ 1
- 0
lib/pages/index.dart Vedi File

@@ -8,4 +8,5 @@ export 'orderDetail/index.dart';
8 8
 export 'machineryList/index.dart';
9 9
 export 'bankList/index.dart';
10 10
 export 'addBankCard/index.dart';
11
+export 'machineryDetail/index.dart';
11 12
 

+ 156
- 0
lib/pages/machineryDetail/index.dart Vedi File

@@ -0,0 +1,156 @@
1
+import 'package:carousel_slider/carousel_slider.dart';
2
+import 'package:flutter/material.dart';
3
+import 'package:flutter_screenutil/flutter_screenutil.dart';
4
+import 'package:get/get.dart';
5
+import 'package:worker_client/models/entities/Machinery.dart';
6
+import 'package:worker_client/services/machinery.dart';
7
+import 'package:worker_client/widgets/Jianbian/index.dart';
8
+import 'package:worker_client/widgets/layout/BasicPage.dart';
9
+
10
+class MachineryDetail extends BasicPage {
11
+  MachineryDetail({Key? key}) : super(key: key) {
12
+    naviTitle = '查看详情';
13
+  }
14
+  final machinery = Rx<Machinery>(Machinery());
15
+  @override
16
+  void beforeShow() {
17
+    // TODO: implement beforeShow
18
+    super.beforeShow();
19
+    if (Get.arguments != null) {
20
+      getMachineryDetail(Get.arguments['id'], {
21
+        'attached': true,
22
+        'location': '118.84002,31.95266'
23
+      }).then((res) => {machinery(Machinery.fromJson(res))});
24
+    }
25
+  }
26
+
27
+  @override
28
+  Widget builder(BuildContext context) {
29
+    return SizedBox(
30
+      width: 375.w,
31
+      child: ListView(
32
+        children: [
33
+          Obx(() => Stack(
34
+                children: [
35
+                  Positioned(
36
+                      top: 0,
37
+                      left: 0,
38
+                      child: SizedBox(
39
+                        width: 375.w,
40
+                        child: CarouselSlider(
41
+                          items: machinery.value.imagesList!
42
+                              .map((item) => Image.network(item.url.toString(),
43
+                                  fit: BoxFit.cover, width: 375.w))
44
+                              .toList(),
45
+                          options: CarouselOptions(
46
+                            autoPlay: true,
47
+                            enlargeCenterPage: false,
48
+                            //图片中心放大
49
+                            viewportFraction: 1,
50
+                            height: 187.5.w,
51
+                            initialPage: 1, //初始页
52
+                          ),
53
+                        ),
54
+                      )),
55
+                  Container(
56
+                      margin: EdgeInsets.only(top: 157.5.w),
57
+                      decoration: BoxDecoration(
58
+                          color: const Color(0xffffffff),
59
+                          borderRadius: BorderRadius.only(
60
+                              topLeft: Radius.circular(20.w),
61
+                              topRight: Radius.circular(20.w))),
62
+                      child: Column(
63
+                        children: [
64
+                          Container(
65
+                            height: 46.w,
66
+                            clipBehavior: Clip.hardEdge,
67
+                            decoration: BoxDecoration(
68
+                                borderRadius: BorderRadius.only(
69
+                                    topLeft: Radius.circular(20.w))),
70
+                            child: Stack(
71
+                              children: [
72
+                                Jianbian(
73
+                                  status: machinery.value.status,
74
+                                  type: 'machinery',
75
+                                  value: machinery.value.jobStatus,
76
+                                )
77
+                              ],
78
+                            ),
79
+                          ),
80
+                          Container(
81
+                            margin: EdgeInsets.only(
82
+                                top: 6.h, left: 15.w, right: 15.w),
83
+                            alignment: Alignment.centerLeft,
84
+                            child: Text(
85
+                              machinery.value.name.toString(),
86
+                              style: TextStyle(
87
+                                  fontSize: 18.sp,
88
+                                  fontWeight: FontWeight.bold,
89
+                                  color: const Color(0xff222222)),
90
+                            ),
91
+                          ),
92
+                          Container(
93
+                            margin: EdgeInsets.fromLTRB(15.w, 43.h, 15.w, 25.h),
94
+                            child: Row(
95
+                              mainAxisAlignment: MainAxisAlignment.center,
96
+                              children: [
97
+                                Image.asset(
98
+                                  'images/machinery/micon2.png',
99
+                                  width: 17.w,
100
+                                ),
101
+                                Container(
102
+                                  padding:
103
+                                      EdgeInsets.only(left: 15.w, right: 15.w),
104
+                                  child: Text(
105
+                                    '农机详情',
106
+                                    style: TextStyle(
107
+                                        color: const Color(0xff222222),
108
+                                        fontWeight: FontWeight.bold,
109
+                                        fontSize: 15.sp,
110
+                                        height: 1.2),
111
+                                  ),
112
+                                ),
113
+                                Image.asset(
114
+                                  'images/machinery/micon2.png',
115
+                                  width: 17.w,
116
+                                ),
117
+                              ],
118
+                            ),
119
+                          ),
120
+                          Container(
121
+                            margin: EdgeInsets.only(left: 15.w, right: 15.w),
122
+                            child: Column(
123
+                              children: machinery.value.contentList != null
124
+                                  ? machinery.value.contentList!.map((e) {
125
+                                      if (e.contentType == 'image') {
126
+                                        return Image.network(
127
+                                            e.content.toString(),
128
+                                            fit: BoxFit.cover,
129
+                                            width: 345.w);
130
+                                      } else {
131
+                                        return Container(
132
+                                          alignment: Alignment.centerLeft,
133
+                                          margin: EdgeInsets.only(
134
+                                              top: 15.h, bottom: 15.h),
135
+                                          child: Text(
136
+                                            e.content.toString(),
137
+                                            style: TextStyle(
138
+                                              fontSize: 15.sp,
139
+                                              color: const Color(0xff222222),
140
+                                            ),
141
+                                          ),
142
+                                        );
143
+                                      }
144
+                                    }).toList()
145
+                                  : [],
146
+                            ),
147
+                          )
148
+                        ],
149
+                      )),
150
+                ],
151
+              ))
152
+        ],
153
+      ),
154
+    );
155
+  }
156
+}

+ 16
- 9
lib/pages/machineryList/index.dart Vedi File

@@ -21,20 +21,27 @@ class MachineryList extends BasicPage {
21 21
     });
22 22
   }
23 23
 
24
+  void goDetail(id) {
25
+    Get.toNamed('/machineryDetail', arguments: {'id': id});
26
+  }
27
+
24 28
   @override
25 29
   Widget builder(BuildContext context) {
26
-    naviTitle = '我的';
30
+    naviTitle = '农机列表';
27 31
     return Container(
28 32
       padding: EdgeInsets.only(top: 15.w),
29
-      child: Obx(() => machineryList.value.length > 0
33
+      child: Obx(() => machineryList.value.isNotEmpty
30 34
           ? ListView(
31
-        children: machineryList.value
32
-            .map((e) =>
33
-            MachineryCard(machinery: e, goDetail: () {}, goMap: () {}))
34
-            .toList(),
35
-      )
35
+              children: machineryList.value
36
+                  .map((e) => MachineryCard(
37
+                      machinery: e,
38
+                      goDetail: () {
39
+                        goDetail(e.machineryId);
40
+                      },
41
+                      goMap: () {}))
42
+                  .toList(),
43
+            )
36 44
           : const NullCard(text: '暂无更多农机')),
37
-    )
38
-      ;
45
+    );
39 46
   }
40 47
 }

+ 8
- 2
lib/pages/main/index.dart Vedi File

@@ -32,8 +32,14 @@ class Main extends BasicPage {
32 32
     Get.toNamed('/machineryList');
33 33
   }
34 34
 
35
+  void goWallet() {
36
+    //钱包页面
37
+    // Get.toNamed('/bankList');
38
+  }
35 39
   void goBankPage() {
36
-    Get.toNamed('/bankList');
40
+    // if (store.user().isOrgManager==true) {
41
+      Get.toNamed('/bankList');
42
+    // }
37 43
   }
38 44
 
39 45
   @override
@@ -129,7 +135,7 @@ class Main extends BasicPage {
129 135
                 child: Container(
130 136
                   decoration: const BoxDecoration(color: Color(0xb2000000)),
131 137
                   child: Text(
132
-                    '该账号归${store.user().nickName != null ? store.user().nickName.toString() : ''}所属',
138
+                    '该账号归${store.user().userName != null ? store.user().nickName.toString() : ''}所属',
133 139
                     style: TextStyle(color: Colors.white, fontSize: 12.sp),
134 140
                   ),
135 141
                 ),

+ 1
- 0
lib/routes/pages.dart Vedi File

@@ -17,6 +17,7 @@ List<GetPage> pages=[
17 17
   GetPage(name: '/jobDetail', page: () => JobDetail()),
18 18
   GetPage(name: '/orderDetail', page: () => OrderDetail()),
19 19
   GetPage(name: '/machineryList', page: () => MachineryList()),
20
+  GetPage(name: '/machineryDetail', page: () => MachineryDetail()),
20 21
   GetPage(name: '/bankList', page: () => BankListPages()),
21 22
   GetPage(name: '/addBankCard', page: () => AddBankPage()),
22 23
 ];

+ 8
- 7
lib/services/machinery.dart Vedi File

@@ -7,17 +7,18 @@ import 'package:fluttertoast/fluttertoast.dart';
7 7
 /// @returns
8 8
 Future getMachineryList(params) async {
9 9
   return request('/machinery',
10
-      options: Options(method: 'GET'), queryParameters: params)
10
+          options: Options(method: 'GET'), queryParameters: params)
11 11
       .catchError((error) =>
12
-  {Fluttertoast.showToast(msg: error.error.toString()), print(error)});
12
+          {Fluttertoast.showToast(msg: error.error.toString()), print(error)});
13 13
 }
14 14
 
15 15
 /// 农机详情
16 16
 /// @param {*} data
17 17
 /// @returns
18
-Future getMachineryDetail(String id) async {
19
-  return request('/machinery-summary/$id', options: Options(method: 'GET'))
18
+Future getMachineryDetail(String id, params) async {
19
+  return request('/machinery-summary/$id',
20
+          options: Options(method: 'GET'), queryParameters: params)
20 21
       .catchError((error) => {
21
-    Fluttertoast.showToast(msg: error.error['message']),
22
-  });
23
-}
22
+            Fluttertoast.showToast(msg: error.error['message']),
23
+          });
24
+}

+ 3
- 2
lib/widgets/Jianbian/index.dart Vedi File

@@ -4,12 +4,13 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
4 4
 import 'package:worker_client/widgets/MyCard/entities/ItemColor.dart';
5 5
 
6 6
 class Jianbian extends StatelessWidget {
7
-  Jianbian({Key? key,  this.type, required this.status, this.value})
7
+  Jianbian({Key? key, this.type, required this.status, this.value, this.ptop})
8 8
       : super(key: key);
9 9
 
10 10
   final String? type;
11 11
   final dynamic status;
12 12
   final dynamic? value;
13
+  final double? ptop;
13 14
 
14 15
   List<ItemColor> colors = [
15 16
     ItemColor(const Color(0xFFC7C7C7), const Color(0xFF8F8F8F),
@@ -56,7 +57,7 @@ class Jianbian extends StatelessWidget {
56 57
   @override
57 58
   Widget build(BuildContext context) {
58 59
     return Positioned(
59
-      top: -61.w,
60
+      top: ptop == null ? -61.w : ptop! - 61.w,
60 61
       left: -67.w,
61 62
       child: Transform.rotate(
62 63
         angle: pi / 6,

+ 77
- 77
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 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
   dotted_border:
152 152
     dependency: "direct main"
153 153
     description:
154 154
       name: dotted_border
155
-      url: "https://pub.dartlang.org"
155
+      url: "https://pub.flutter-io.cn"
156 156
     source: hosted
157 157
     version: "2.0.0+2"
158 158
   fake_async:
159 159
     dependency: transitive
160 160
     description:
161 161
       name: fake_async
162
-      url: "https://pub.dartlang.org"
162
+      url: "https://pub.flutter-io.cn"
163 163
     source: hosted
164 164
     version: "1.2.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,21 +185,21 @@ 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_plugin_android_lifecycle:
192 192
     dependency: transitive
193 193
     description:
194 194
       name: flutter_plugin_android_lifecycle
195
-      url: "https://pub.dartlang.org"
195
+      url: "https://pub.flutter-io.cn"
196 196
     source: hosted
197 197
     version: "2.0.5"
198 198
   flutter_screenutil:
199 199
     dependency: "direct main"
200 200
     description:
201 201
       name: flutter_screenutil
202
-      url: "https://pub.dartlang.org"
202
+      url: "https://pub.flutter-io.cn"
203 203
     source: hosted
204 204
     version: "5.5.2"
205 205
   flutter_test:
@@ -216,238 +216,238 @@ packages:
216 216
     dependency: "direct main"
217 217
     description:
218 218
       name: fluttertoast
219
-      url: "https://pub.dartlang.org"
219
+      url: "https://pub.flutter-io.cn"
220 220
     source: hosted
221 221
     version: "8.0.9"
222 222
   get:
223 223
     dependency: "direct main"
224 224
     description:
225 225
       name: get
226
-      url: "https://pub.dartlang.org"
226
+      url: "https://pub.flutter-io.cn"
227 227
     source: hosted
228 228
     version: "4.6.1"
229 229
   get_storage:
230 230
     dependency: "direct main"
231 231
     description:
232 232
       name: get_storage
233
-      url: "https://pub.dartlang.org"
233
+      url: "https://pub.flutter-io.cn"
234 234
     source: hosted
235 235
     version: "2.0.3"
236 236
   glob:
237 237
     dependency: transitive
238 238
     description:
239 239
       name: glob
240
-      url: "https://pub.dartlang.org"
240
+      url: "https://pub.flutter-io.cn"
241 241
     source: hosted
242 242
     version: "2.0.2"
243 243
   http_parser:
244 244
     dependency: transitive
245 245
     description:
246 246
       name: http_parser
247
-      url: "https://pub.dartlang.org"
247
+      url: "https://pub.flutter-io.cn"
248 248
     source: hosted
249 249
     version: "4.0.0"
250 250
   js:
251 251
     dependency: transitive
252 252
     description:
253 253
       name: js
254
-      url: "https://pub.dartlang.org"
254
+      url: "https://pub.flutter-io.cn"
255 255
     source: hosted
256 256
     version: "0.6.3"
257 257
   json_annotation:
258 258
     dependency: transitive
259 259
     description:
260 260
       name: json_annotation
261
-      url: "https://pub.dartlang.org"
261
+      url: "https://pub.flutter-io.cn"
262 262
     source: hosted
263 263
     version: "4.5.0"
264 264
   json_serializable:
265 265
     dependency: "direct main"
266 266
     description:
267 267
       name: json_serializable
268
-      url: "https://pub.dartlang.org"
268
+      url: "https://pub.flutter-io.cn"
269 269
     source: hosted
270 270
     version: "6.2.0"
271 271
   lints:
272 272
     dependency: transitive
273 273
     description:
274 274
       name: lints
275
-      url: "https://pub.dartlang.org"
275
+      url: "https://pub.flutter-io.cn"
276 276
     source: hosted
277 277
     version: "1.0.1"
278 278
   logging:
279 279
     dependency: transitive
280 280
     description:
281 281
       name: logging
282
-      url: "https://pub.dartlang.org"
282
+      url: "https://pub.flutter-io.cn"
283 283
     source: hosted
284 284
     version: "1.0.2"
285 285
   matcher:
286 286
     dependency: transitive
287 287
     description:
288 288
       name: matcher
289
-      url: "https://pub.dartlang.org"
289
+      url: "https://pub.flutter-io.cn"
290 290
     source: hosted
291 291
     version: "0.12.11"
292 292
   material_color_utilities:
293 293
     dependency: transitive
294 294
     description:
295 295
       name: material_color_utilities
296
-      url: "https://pub.dartlang.org"
296
+      url: "https://pub.flutter-io.cn"
297 297
     source: hosted
298 298
     version: "0.1.3"
299 299
   meta:
300 300
     dependency: transitive
301 301
     description:
302 302
       name: meta
303
-      url: "https://pub.dartlang.org"
303
+      url: "https://pub.flutter-io.cn"
304 304
     source: hosted
305 305
     version: "1.7.0"
306 306
   package_config:
307 307
     dependency: transitive
308 308
     description:
309 309
       name: package_config
310
-      url: "https://pub.dartlang.org"
310
+      url: "https://pub.flutter-io.cn"
311 311
     source: hosted
312 312
     version: "2.0.2"
313 313
   path:
314 314
     dependency: transitive
315 315
     description:
316 316
       name: path
317
-      url: "https://pub.dartlang.org"
317
+      url: "https://pub.flutter-io.cn"
318 318
     source: hosted
319 319
     version: "1.8.0"
320 320
   path_drawing:
321 321
     dependency: transitive
322 322
     description:
323 323
       name: path_drawing
324
-      url: "https://pub.dartlang.org"
324
+      url: "https://pub.flutter-io.cn"
325 325
     source: hosted
326 326
     version: "1.0.0"
327 327
   path_parsing:
328 328
     dependency: transitive
329 329
     description:
330 330
       name: path_parsing
331
-      url: "https://pub.dartlang.org"
331
+      url: "https://pub.flutter-io.cn"
332 332
     source: hosted
333 333
     version: "1.0.0"
334 334
   path_provider:
335 335
     dependency: transitive
336 336
     description:
337 337
       name: path_provider
338
-      url: "https://pub.dartlang.org"
338
+      url: "https://pub.flutter-io.cn"
339 339
     source: hosted
340 340
     version: "2.0.9"
341 341
   path_provider_android:
342 342
     dependency: transitive
343 343
     description:
344 344
       name: path_provider_android
345
-      url: "https://pub.dartlang.org"
345
+      url: "https://pub.flutter-io.cn"
346 346
     source: hosted
347 347
     version: "2.0.13"
348 348
   path_provider_ios:
349 349
     dependency: transitive
350 350
     description:
351 351
       name: path_provider_ios
352
-      url: "https://pub.dartlang.org"
352
+      url: "https://pub.flutter-io.cn"
353 353
     source: hosted
354 354
     version: "2.0.8"
355 355
   path_provider_linux:
356 356
     dependency: transitive
357 357
     description:
358 358
       name: path_provider_linux
359
-      url: "https://pub.dartlang.org"
359
+      url: "https://pub.flutter-io.cn"
360 360
     source: hosted
361 361
     version: "2.1.5"
362 362
   path_provider_macos:
363 363
     dependency: transitive
364 364
     description:
365 365
       name: path_provider_macos
366
-      url: "https://pub.dartlang.org"
366
+      url: "https://pub.flutter-io.cn"
367 367
     source: hosted
368 368
     version: "2.0.5"
369 369
   path_provider_platform_interface:
370 370
     dependency: transitive
371 371
     description:
372 372
       name: path_provider_platform_interface
373
-      url: "https://pub.dartlang.org"
373
+      url: "https://pub.flutter-io.cn"
374 374
     source: hosted
375 375
     version: "2.0.3"
376 376
   path_provider_windows:
377 377
     dependency: transitive
378 378
     description:
379 379
       name: path_provider_windows
380
-      url: "https://pub.dartlang.org"
380
+      url: "https://pub.flutter-io.cn"
381 381
     source: hosted
382 382
     version: "2.0.5"
383 383
   permission_handler:
384 384
     dependency: "direct main"
385 385
     description:
386 386
       name: permission_handler
387
-      url: "https://pub.dartlang.org"
387
+      url: "https://pub.flutter-io.cn"
388 388
     source: hosted
389 389
     version: "9.2.0"
390 390
   permission_handler_android:
391 391
     dependency: transitive
392 392
     description:
393 393
       name: permission_handler_android
394
-      url: "https://pub.dartlang.org"
394
+      url: "https://pub.flutter-io.cn"
395 395
     source: hosted
396 396
     version: "9.0.2+1"
397 397
   permission_handler_apple:
398 398
     dependency: transitive
399 399
     description:
400 400
       name: permission_handler_apple
401
-      url: "https://pub.dartlang.org"
401
+      url: "https://pub.flutter-io.cn"
402 402
     source: hosted
403 403
     version: "9.0.4"
404 404
   permission_handler_platform_interface:
405 405
     dependency: transitive
406 406
     description:
407 407
       name: permission_handler_platform_interface
408
-      url: "https://pub.dartlang.org"
408
+      url: "https://pub.flutter-io.cn"
409 409
     source: hosted
410 410
     version: "3.7.0"
411 411
   permission_handler_windows:
412 412
     dependency: transitive
413 413
     description:
414 414
       name: permission_handler_windows
415
-      url: "https://pub.dartlang.org"
415
+      url: "https://pub.flutter-io.cn"
416 416
     source: hosted
417 417
     version: "0.1.0"
418 418
   platform:
419 419
     dependency: transitive
420 420
     description:
421 421
       name: platform
422
-      url: "https://pub.dartlang.org"
422
+      url: "https://pub.flutter-io.cn"
423 423
     source: hosted
424 424
     version: "3.1.0"
425 425
   plugin_platform_interface:
426 426
     dependency: transitive
427 427
     description:
428 428
       name: plugin_platform_interface
429
-      url: "https://pub.dartlang.org"
429
+      url: "https://pub.flutter-io.cn"
430 430
     source: hosted
431 431
     version: "2.1.2"
432 432
   process:
433 433
     dependency: transitive
434 434
     description:
435 435
       name: process
436
-      url: "https://pub.dartlang.org"
436
+      url: "https://pub.flutter-io.cn"
437 437
     source: hosted
438 438
     version: "4.2.4"
439 439
   pub_semver:
440 440
     dependency: transitive
441 441
     description:
442 442
       name: pub_semver
443
-      url: "https://pub.dartlang.org"
443
+      url: "https://pub.flutter-io.cn"
444 444
     source: hosted
445 445
     version: "2.1.1"
446 446
   pubspec_parse:
447 447
     dependency: transitive
448 448
     description:
449 449
       name: pubspec_parse
450
-      url: "https://pub.dartlang.org"
450
+      url: "https://pub.flutter-io.cn"
451 451
     source: hosted
452 452
     version: "1.2.0"
453 453
   sky_engine:
@@ -459,105 +459,105 @@ packages:
459 459
     dependency: transitive
460 460
     description:
461 461
       name: source_gen
462
-      url: "https://pub.dartlang.org"
462
+      url: "https://pub.flutter-io.cn"
463 463
     source: hosted
464 464
     version: "1.2.2"
465 465
   source_helper:
466 466
     dependency: transitive
467 467
     description:
468 468
       name: source_helper
469
-      url: "https://pub.dartlang.org"
469
+      url: "https://pub.flutter-io.cn"
470 470
     source: hosted
471 471
     version: "1.3.2"
472 472
   source_span:
473 473
     dependency: transitive
474 474
     description:
475 475
       name: source_span
476
-      url: "https://pub.dartlang.org"
476
+      url: "https://pub.flutter-io.cn"
477 477
     source: hosted
478 478
     version: "1.8.1"
479 479
   stack_trace:
480 480
     dependency: transitive
481 481
     description:
482 482
       name: stack_trace
483
-      url: "https://pub.dartlang.org"
483
+      url: "https://pub.flutter-io.cn"
484 484
     source: hosted
485 485
     version: "1.10.0"
486 486
   stream_channel:
487 487
     dependency: transitive
488 488
     description:
489 489
       name: stream_channel
490
-      url: "https://pub.dartlang.org"
490
+      url: "https://pub.flutter-io.cn"
491 491
     source: hosted
492 492
     version: "2.1.0"
493 493
   stream_transform:
494 494
     dependency: transitive
495 495
     description:
496 496
       name: stream_transform
497
-      url: "https://pub.dartlang.org"
497
+      url: "https://pub.flutter-io.cn"
498 498
     source: hosted
499 499
     version: "2.0.0"
500 500
   string_scanner:
501 501
     dependency: transitive
502 502
     description:
503 503
       name: string_scanner
504
-      url: "https://pub.dartlang.org"
504
+      url: "https://pub.flutter-io.cn"
505 505
     source: hosted
506 506
     version: "1.1.0"
507 507
   term_glyph:
508 508
     dependency: transitive
509 509
     description:
510 510
       name: term_glyph
511
-      url: "https://pub.dartlang.org"
511
+      url: "https://pub.flutter-io.cn"
512 512
     source: hosted
513 513
     version: "1.2.0"
514 514
   test_api:
515 515
     dependency: transitive
516 516
     description:
517 517
       name: test_api
518
-      url: "https://pub.dartlang.org"
518
+      url: "https://pub.flutter-io.cn"
519 519
     source: hosted
520 520
     version: "0.4.8"
521 521
   typed_data:
522 522
     dependency: transitive
523 523
     description:
524 524
       name: typed_data
525
-      url: "https://pub.dartlang.org"
525
+      url: "https://pub.flutter-io.cn"
526 526
     source: hosted
527 527
     version: "1.3.0"
528 528
   vector_math:
529 529
     dependency: transitive
530 530
     description:
531 531
       name: vector_math
532
-      url: "https://pub.dartlang.org"
532
+      url: "https://pub.flutter-io.cn"
533 533
     source: hosted
534 534
     version: "2.1.1"
535 535
   watcher:
536 536
     dependency: transitive
537 537
     description:
538 538
       name: watcher
539
-      url: "https://pub.dartlang.org"
539
+      url: "https://pub.flutter-io.cn"
540 540
     source: hosted
541 541
     version: "1.0.1"
542 542
   win32:
543 543
     dependency: transitive
544 544
     description:
545 545
       name: win32
546
-      url: "https://pub.dartlang.org"
546
+      url: "https://pub.flutter-io.cn"
547 547
     source: hosted
548 548
     version: "2.5.2"
549 549
   xdg_directories:
550 550
     dependency: transitive
551 551
     description:
552 552
       name: xdg_directories
553
-      url: "https://pub.dartlang.org"
553
+      url: "https://pub.flutter-io.cn"
554 554
     source: hosted
555 555
     version: "0.2.0+1"
556 556
   yaml:
557 557
     dependency: transitive
558 558
     description:
559 559
       name: yaml
560
-      url: "https://pub.dartlang.org"
560
+      url: "https://pub.flutter-io.cn"
561 561
     source: hosted
562 562
     version: "3.1.0"
563 563
 sdks:

+ 1
- 0
pubspec.yaml Vedi File

@@ -75,6 +75,7 @@ flutter:
75 75
     - images/login/
76 76
     - images/index/
77 77
     - images/main/
78
+    - images/machinery/
78 79
   # To add assets to your application, add an assets section, like this:
79 80
   # assets:
80 81
   #   - images/a_dot_burr.jpeg