瀏覽代碼

indofndfinw

[baozhangchao] 3 年之前
父節點
當前提交
ea69eaf351

+ 35
- 0
lib/models/entities/NewsInformationModel.dart 查看文件

1
+class NewsInformationModel {
2
+  String? newsId;
3
+  String? title;
4
+  String? typeId;
5
+  String? typeNam;
6
+  String? thumb;
7
+  num? weight;
8
+  num? status;
9
+  String? createDate;
10
+  String? contentList;
11
+  NewsInformationModel();
12
+
13
+  NewsInformationModel.fromJson(Map<String, dynamic> json)
14
+      : newsId=json["newsId"],
15
+        title=json["title"],
16
+        typeId=json["typeId"],
17
+        typeNam=json["typeNam"],
18
+        thumb=json["thumb"],
19
+        weight=json["weight"],
20
+        status=json["status"],
21
+        createDate=json["createDate"],
22
+        contentList=json["contentList"];
23
+
24
+  Map<String, dynamic> toJson() => {
25
+    'newsId':newsId,
26
+    'title':title,
27
+    'typeId':typeId,
28
+    'typeNam':typeNam,
29
+    'thumb':thumb,
30
+    'weight':weight,
31
+    'status':status,
32
+    'createDate':createDate,
33
+    'contentList':contentList,
34
+  };
35
+}

+ 90
- 0
lib/models/entities/OrderInfoModel.dart 查看文件

1
+class OrderInfoModel {
2
+  String? orderId;
3
+  String? orderNo;
4
+  String? personId;
5
+  String? personName;
6
+  String? phone;
7
+  num? charges;
8
+  num? price;
9
+  num? amount;
10
+  String? machineryId;
11
+  String? machineryName;
12
+  String? machineryType;
13
+  String? typeName;
14
+  String? address;
15
+  String? appointmentDate;
16
+  num? payStatus;
17
+  num? dispatchStatus;
18
+  num? workStatus;
19
+  num? isEvaluated;
20
+  num? payType;
21
+  num? isRefund;
22
+  String? orgId;
23
+  String? orgName;
24
+  num? status;
25
+  String? createDate;
26
+  String? dispatchId;
27
+  String? workId;
28
+  String? workName;
29
+  OrderInfoModel();
30
+
31
+  OrderInfoModel.fromJson(Map<String, dynamic> json)
32
+      : orderId=json["orderId"],
33
+        orderNo=json["orderNo"],
34
+        personId=json["personId"],
35
+        personName=json["personName"],
36
+        phone=json["phone"],
37
+        charges=json["charges"],
38
+        price=json["price"],
39
+        amount=json["amount"],
40
+        machineryId=json["machineryId"],
41
+        machineryName=json["machineryName"],
42
+        machineryType=json["machineryType"],
43
+        typeName=json["typeName"],
44
+        address=json["address"],
45
+        appointmentDate=json["appointmentDate"],
46
+        payStatus=json["payStatus"],
47
+        dispatchStatus=json["dispatchStatus"],
48
+        workStatus=json["workStatus"],
49
+        isEvaluated=json["isEvaluated"],
50
+        payType=json["payType"],
51
+        isRefund=json["isRefund"],
52
+        orgId=json["orgId"],
53
+        orgName=json["orgName"],
54
+        status=json["status"],
55
+        createDate=json["createDate"],
56
+        dispatchId=json["dispatchId"],
57
+        workId=json["workId"],
58
+        workName=json["workName"];
59
+
60
+  Map<String, dynamic> toJson() => {
61
+    'orderId':orderId,
62
+    'orderNo':orderNo,
63
+    'personId':personId,
64
+    'personName':personName,
65
+    'phone':phone,
66
+    'charges':charges,
67
+    'price':price,
68
+    'amount':amount,
69
+    'machineryId':machineryId,
70
+    'machineryName':machineryName,
71
+    'machineryType':machineryType,
72
+    'typeName':typeName,
73
+    'address':address,
74
+    'appointmentDate':appointmentDate,
75
+    'payStatus':payStatus,
76
+    'dispatchStatus':dispatchStatus,
77
+    'workStatus':workStatus,
78
+    'isEvaluated':isEvaluated,
79
+    'payType':payType,
80
+    'isRefund':isRefund,
81
+    'orgId':orgId,
82
+    'orgName':orgName,
83
+    'status':status,
84
+    'createDate':createDate,
85
+    'dispatchId':dispatchId,
86
+    'workId':workId,
87
+    'workName':workName,
88
+  };
89
+}
90
+

+ 4
- 2
lib/pages/home/widgets/home/index.dart 查看文件

1
 import 'package:carousel_slider/carousel_slider.dart';
1
 import 'package:carousel_slider/carousel_slider.dart';
2
 import 'package:farmer_client/pages/home/widgets/home/widgets/headers.dart';
2
 import 'package:farmer_client/pages/home/widgets/home/widgets/headers.dart';
3
+import 'package:farmer_client/widgets/NullCard.dart';
3
 import 'package:flutter/material.dart';
4
 import 'package:flutter/material.dart';
4
 import 'package:flutter_screenutil/flutter_screenutil.dart';
5
 import 'package:flutter_screenutil/flutter_screenutil.dart';
5
 import 'package:get/get.dart';
6
 import 'package:get/get.dart';
55
       ),
56
       ),
56
       alignment: Alignment.center,
57
       alignment: Alignment.center,
57
       padding: EdgeInsets.fromLTRB(15.w, 0, 15.w, 0),
58
       padding: EdgeInsets.fromLTRB(15.w, 0, 15.w, 0),
58
-      child: Column(
59
+      child:  Column(
59
         children: [
60
         children: [
60
           TypeHeader(
61
           TypeHeader(
61
             type: true,
62
             type: true,
120
                       )
121
                       )
121
                     ],
122
                     ],
122
                   ),
123
                   ),
124
+                  machineryLists.length>=0?
123
                   Column(
125
                   Column(
124
                     children: machineryLists
126
                     children: machineryLists
125
                         .map((item) => CarsCard(item: item))
127
                         .map((item) => CarsCard(item: item))
126
                         .toList(),
128
                         .toList(),
127
-                  )
129
+                  ):NullCard(text: '暂无农机信息!')
128
                 ],
130
                 ],
129
               )),
131
               )),
130
         ],
132
         ],

+ 24
- 2
lib/pages/infomation/index.dart 查看文件

2
 import 'package:farmer_client/widgets/layout/BasicPage.dart';
2
 import 'package:farmer_client/widgets/layout/BasicPage.dart';
3
 import 'package:flutter/material.dart';
3
 import 'package:flutter/material.dart';
4
 
4
 
5
+import '../../models/entities/NewsInformationModel.dart';
6
+import '../../services/news.dart';
7
+
5
 class Infomation extends BasicPage {
8
 class Infomation extends BasicPage {
6
   Infomation({Key? key}) : super(key: key) {
9
   Infomation({Key? key}) : super(key: key) {
7
     tabIndex = 2;
10
     tabIndex = 2;
8
-    naviTitle = '讯';
11
+    naviTitle = '讯';
9
   }
12
   }
13
+  List<NewsInformationModel> newsListItem = [];
14
+
15
+
16
+@override
17
+  void beforeShow() {
18
+    // TODO: implement beforeShow
19
+    super.beforeShow();
20
+  getNewsList().then((value) {
21
+     value['records'].forEach((item) {
22
+       newsListItem.add(NewsInformationModel.fromJson(item));
23
+      });
24
+  });
25
+
26
+}
10
 
27
 
11
   @override
28
   @override
12
   Widget builder(BuildContext context) {
29
   Widget builder(BuildContext context) {
13
-    return  Information();
30
+
31
+
32
+    return  Column(
33
+      mainAxisSize: MainAxisSize.min,
34
+      children: newsListItem.map((item) => Information(item: item)).toList(),
35
+    );
14
   }
36
   }
15
 }
37
 }

+ 13
- 53
lib/pages/infomation/widgets/Information/index.dart 查看文件

3
 import 'package:get/get.dart';
3
 import 'package:get/get.dart';
4
 import 'package:get/get_core/src/get_main.dart';
4
 import 'package:get/get_core/src/get_main.dart';
5
 
5
 
6
+import '../../../../models/entities/NewsInformationModel.dart';
7
+
8
+import 'package:intl/intl.dart';
6
 import '../../../ArticleInfo/ArticleInfo.dart';
9
 import '../../../ArticleInfo/ArticleInfo.dart';
7
 
10
 
8
 class Information extends StatefulWidget {
11
 class Information extends StatefulWidget {
9
-  const Information({Key? key}) : super(key: key);
12
+  final NewsInformationModel item;
13
+  const Information({Key? key, required this.item}) : super(key: key);
10
 
14
 
11
   @override
15
   @override
12
   State<Information> createState() => _InformationState();
16
   State<Information> createState() => _InformationState();
17
+
18
+  // getNewsList
13
 }
19
 }
14
 
20
 
15
 class _InformationState extends State<Information> {
21
 class _InformationState extends State<Information> {
22
+  late final NewsInformationModel item;
23
+
24
+
16
   @override
25
   @override
17
   Widget build(BuildContext context) {
26
   Widget build(BuildContext context) {
18
     return Column(
27
     return Column(
19
       children: [
28
       children: [
20
         // ListTile用不好
29
         // ListTile用不好
21
-
22
         GestureDetector(
30
         GestureDetector(
23
           child: Container(
31
           child: Container(
24
               padding: EdgeInsets.fromLTRB(0, 30, 0, 30),
32
               padding: EdgeInsets.fromLTRB(0, 30, 0, 30),
47
                       Container(
55
                       Container(
48
                         width: 240.w,
56
                         width: 240.w,
49
                         padding: EdgeInsets.fromLTRB(0, 0, 0, 30),
57
                         padding: EdgeInsets.fromLTRB(0, 0, 0, 30),
50
-                        child: Text("我我就是一个标题,什阿三大苏打333萨达萨达萨达v么特不是",
58
+                        child: Text('',
51
                             softWrap: true,
59
                             softWrap: true,
52
                             maxLines: 2,
60
                             maxLines: 2,
53
                             textAlign: TextAlign.left,
61
                             textAlign: TextAlign.left,
58
                             )),
66
                             )),
59
                       ),
67
                       ),
60
                       Container(
68
                       Container(
61
-                        child: Text('2022-02-09'),
69
+
70
+                        child: Text(''),
62
                       )
71
                       )
63
                     ],
72
                     ],
64
                   )
73
                   )
68
             Get.to(ArticleInfo());
77
             Get.to(ArticleInfo());
69
           },
78
           },
70
         ),
79
         ),
71
-        GestureDetector(
72
-          child: Container(
73
-              padding: EdgeInsets.fromLTRB(0, 30, 0, 30),
74
-              decoration: const BoxDecoration(
75
-                  border: Border(
76
-                      bottom: BorderSide(width: 0.5, color: Color(0x20000000)
77
-                          // 0x17000000
78
-                          ))),
79
-              child: Row(
80
-                children: [
81
-                  Container(
82
-                    margin: EdgeInsets.fromLTRB(15, 0, 11, 0),
83
-                    width: 100,
84
-                    height: 100,
85
-                    decoration: BoxDecoration(
86
-                      image: DecorationImage(
87
-                        image: AssetImage('images/cars.png'),
88
-                        fit: BoxFit.cover,
89
-                      ),
90
-                      borderRadius: BorderRadius.circular(12),
91
-                    ),
92
-                  ),
93
-                  Column(
94
-                    crossAxisAlignment: CrossAxisAlignment.start,
95
-                    children: [
96
-                      Container(
97
-                        width: 240.w,
98
-                        padding: EdgeInsets.fromLTRB(0, 0, 0, 30),
99
-                        child: Text("我我就是一个标题,什阿三大苏打333萨达萨达萨达v么特不是",
100
-                            softWrap: true,
101
-                            maxLines: 2,
102
-                            textAlign: TextAlign.left,
103
-                            overflow: TextOverflow.ellipsis,
104
-                            style: TextStyle(
105
-                              fontSize: 17.sp,
106
-                              fontWeight: FontWeight.bold,
107
-                            )),
108
-                      ),
109
-                      Container(
110
-                        child: Text('2022-02-09'),
111
-                      )
112
-                    ],
113
-                  )
114
-                ],
115
-              )),
116
-          onTap: () {
117
-            print('进入资讯详情');
118
-          },
119
-        )
120
       ],
80
       ],
121
     );
81
     );
122
   }
82
   }

+ 4
- 2
lib/pages/order/widgets/order/index.dart 查看文件

1
+import 'package:farmer_client/widgets/NullCard.dart';
1
 import 'package:flutter/material.dart';
2
 import 'package:flutter/material.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
 
4
 
32
 
33
 
33
   @override
34
   @override
34
   Widget build(BuildContext context) {
35
   Widget build(BuildContext context) {
35
-    return Column(
36
+    return orderListItem.length >= 0?
37
+      Column(
36
       children: [
38
       children: [
37
         Container(
39
         Container(
38
           padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
40
           padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
69
           orderListItem.map((item) => OrderListCard(item: item)).toList(),
71
           orderListItem.map((item) => OrderListCard(item: item)).toList(),
70
         ),
72
         ),
71
       ],
73
       ],
72
-    );
74
+    ):NullCard(text: '您还没有新的订单!');
73
   }
75
   }
74
 }
76
 }

+ 144
- 58
lib/pages/orderInfo/index.dart 查看文件

4
 import 'package:fluttertoast/fluttertoast.dart';
4
 import 'package:fluttertoast/fluttertoast.dart';
5
 import 'package:get/get.dart';
5
 import 'package:get/get.dart';
6
 
6
 
7
+import '../../models/entities/OrderInfoModel.dart';
8
+import '../../services/orderAPI.dart';
7
 import '../../widgets/OrderInfoCard.dart';
9
 import '../../widgets/OrderInfoCard.dart';
8
 import '../../widgets/layout/BasicPage.dart';
10
 import '../../widgets/layout/BasicPage.dart';
9
 
11
 
10
-// class OrderPageInfo extends StatefulWidget {
11
-//   const OrderPageInfo({Key? key}) : super(key: key);
12
-//
13
-//   @override
14
-//   State<OrderPageInfo> createState() => _OrderPageInfoState();
12
+// class OrderContentInfo {
13
+//   String title;
14
+//   Color styleColor;
15
+//   StyleObj ({ required this.title, required this.styleColor});
15
 // }
16
 // }
16
 
17
 
18
+
19
+
17
 class OrderPageInfo extends BasicPage {
20
 class OrderPageInfo extends BasicPage {
21
+  String id = '';
22
+  String orderStateText = '';
23
+  late Color orderStateColor;
24
+
25
+  final orderInfoContent = Rx<OrderInfoModel>(OrderInfoModel());
26
+
27
+  // orderStates
28
+
18
   @override
29
   @override
30
+  void beforeShow() {
31
+    // TODO: implement beforeShow
32
+    super.beforeShow();
33
+    if (Get.arguments['id'] != null) {
34
+      id = Get.arguments['id'];
19
 
35
 
36
+      orderStateText = Get.arguments['title'];
37
+      orderStateColor = Get.arguments['styleColor'];
20
 
38
 
21
-  void onCancel() {
39
+      orderInfo(id).then((value) {
40
+        orderInfoContent.value = OrderInfoModel.fromJson(value);
41
+      });
42
+    }
43
+  }
44
+
45
+  @override
46
+  Widget builder(BuildContext context) {
47
+    naviTitle = '订单详情';
48
+
49
+    return Column(
50
+      children: [
51
+        Obx(() =>
52
+            OrderInfoCard(
53
+                item: orderInfoContent.value,
54
+                orderStateText: orderStateText,
55
+                orderStateColor: orderStateColor
56
+            ),
57
+        ),
58
+        _BottomWidget()
59
+        // orderStateText=='已完成'?  Text('')
60
+        //     :orderStateText== '进行中' ?Text('')
61
+        //     :orderStateText=='待评价'? DefaultButton(
62
+        //   color: const Color(0xffffffff),
63
+        //   backColor: const Color(0xFFFF703B),
64
+        //   width: 300.w,
65
+        //   height: 49.h,
66
+        //   text: '评价',
67
+        //   onPressed: () {
68
+        //     Fluttertoast.showToast(msg: '评价成功!');
69
+        //     Get.offAllNamed('/');
70
+        //   },
71
+        //   margin: const EdgeInsets.all(0),
72
+        //   fontSize: 20.sp,
73
+        //   radius: 24.5.w,
74
+        // )
75
+        //     :orderStateText=='待作业'?DefaultButton(
76
+        //   color: const Color(0xffffffff),
77
+        //   backColor: const Color(0xFFFF703B),
78
+        //   width: 300.w,
79
+        //   height: 49.h,
80
+        //   text: '退单',
81
+        //   onPressed: () {
82
+        //     Fluttertoast.showToast(msg: '评价成功!');
83
+        //     Get.offAllNamed('/');
84
+        //   },
85
+        //   margin: const EdgeInsets.all(0),
86
+        //   fontSize: 20.sp,
87
+        //   radius: 24.5.w,
88
+        // )
89
+        //     :orderStateText=='待付款'?_BottomWidget
90
+        //     :orderStateText=='已退单'?Text('')
91
+        //     :orderStateText=='退单申请中'?DefaultButton(
92
+        //   color: const Color(0xffffffff),
93
+        //   backColor: const Color(0xFFFF703B),
94
+        //   width: 300.w,
95
+        //   height: 49.h,
96
+        //   text: orderStateText,
97
+        //   onPressed: () {
98
+        //     Fluttertoast.showToast(msg: '评价成功!');
99
+        //     Get.offAllNamed('/');
100
+        //   },
101
+        //   margin: const EdgeInsets.all(0),
102
+        //   fontSize: 20.sp,
103
+        //   radius: 24.5.w,
104
+        // ):Text(''),
22
 
105
 
106
+        // Spacer(),
107
+      ],
108
+    );
23
   }
109
   }
110
+}
111
+
112
+class _BottomWidget extends StatelessWidget {
113
+  const _BottomWidget({Key? key}) : super(key: key);
24
 
114
 
25
   @override
115
   @override
26
-  Widget builder (BuildContext context) {
27
-    naviTitle= '订单详情';
28
-    return  Column(
116
+  Widget build(BuildContext context) {
117
+
118
+    return Container(
119
+      height: 100.w,
120
+      alignment: Alignment.bottomCenter,
121
+      margin: EdgeInsets.fromLTRB(15.w, 0, 15.w, 50.h),
122
+      child: Row(
123
+        mainAxisAlignment: MainAxisAlignment.spaceBetween,
29
         children: [
124
         children: [
30
-          OrderInfoCard(),
31
-          // Spacer(),
32
-          Container(
33
-            height: 100.w,
34
-            alignment: Alignment.bottomCenter,
35
-            margin: EdgeInsets.fromLTRB(15.w, 0, 15.w, 50.h),
36
-            child: Row(
37
-              mainAxisAlignment: MainAxisAlignment.spaceBetween,
38
-              children: [
39
-                GestureDetector(
40
-                  onTap: () {
41
-                    onCancel();
42
-                  },
43
-                  child: Container(
44
-                    width: 150.w,
45
-                    height: 49.h,
46
-                    decoration: BoxDecoration(
47
-                        color: const Color(0xffffffff),
48
-                        border: Border.all(
49
-                            color: const Color(0xFFFF703B),
50
-                            width: 1.w,
51
-                            style: BorderStyle.solid),
52
-                        borderRadius:
53
-                            BorderRadius.all(Radius.circular(24.5.w))),
54
-                    child: Center(
55
-                      child: Text(
56
-                        '取消',
57
-                        style: TextStyle(
58
-                            fontSize: 20.sp,
59
-                            color: const Color(0xFFFF703B),
60
-                            fontWeight: FontWeight.bold),
61
-                      ),
62
-                    ),
63
-                  ),
64
-                ),
65
-                DefaultButton(
125
+          GestureDetector(
126
+            onTap: () {
127
+              // onCancel();
128
+            },
129
+            child: Container(
130
+              width: 150.w,
131
+              height: 49.h,
132
+              decoration: BoxDecoration(
66
                   color: const Color(0xffffffff),
133
                   color: const Color(0xffffffff),
67
-                  backColor: const Color(0xFFFF703B),
68
-                  width: 150.w,
69
-                  height: 49.h,
70
-                  text: '支付',
71
-                  onPressed: () {
72
-                    Fluttertoast.showToast(msg: '支付成功!');
73
-                    Get.offAllNamed('/');
74
-                  },
75
-                  margin: const EdgeInsets.all(0),
76
-                  fontSize: 20.sp,
77
-                  radius: 24.5.w,
134
+                  border: Border.all(
135
+                      color: const Color(0xFFFF703B),
136
+                      width: 1.w,
137
+                      style: BorderStyle.solid),
138
+                  borderRadius:
139
+                  BorderRadius.all(Radius.circular(24.5.w))),
140
+              child: Center(
141
+                child: Text(
142
+                  '取消',
143
+                  style: TextStyle(
144
+                      fontSize: 20.sp,
145
+                      color: const Color(0xFFFF703B),
146
+                      fontWeight: FontWeight.bold),
78
                 ),
147
                 ),
79
-              ],
148
+              ),
80
             ),
149
             ),
81
           ),
150
           ),
151
+          DefaultButton(
152
+            color: const Color(0xffffffff),
153
+            backColor: const Color(0xFFFF703B),
154
+            width: 150.w,
155
+            height: 49.h,
156
+            text: '支付',
157
+            onPressed: () {
158
+              Fluttertoast.showToast(msg: '支付成功!');
159
+              Get.offAllNamed('/');
160
+            },
161
+            margin: const EdgeInsets.all(0),
162
+            fontSize: 20.sp,
163
+            radius: 24.5.w,
164
+          ),
82
         ],
165
         ],
166
+      ),
83
     );
167
     );
84
-
85
   }
168
   }
86
 }
169
 }
170
+
171
+
172
+

+ 36
- 0
lib/services/news.dart 查看文件

1
+
2
+
3
+import 'package:dio/dio.dart';
4
+import 'package:farmer_client/utils/Request.dart';
5
+import 'package:fluttertoast/fluttertoast.dart';
6
+
7
+
8
+/**
9
+ * 农机资讯
10
+ * @param {*} data
11
+ * @returns
12
+ */
13
+Future getNewsList()async{
14
+  return request('/news',options: Options(method: 'GET')).catchError((error) =>
15
+  { Fluttertoast.showToast(
16
+      msg: error.error['message']
17
+  ),});
18
+
19
+}
20
+
21
+/**
22
+ * 农机资讯详情
23
+ * @param {*} data
24
+ * @returns
25
+ */
26
+Future getNewsInfo(String id)async{
27
+  return request('/news/$id',options: Options(method: 'GET'),).catchError((error) =>
28
+  { Fluttertoast.showToast(
29
+      msg: error.error['message']
30
+  ),});
31
+
32
+}
33
+
34
+
35
+
36
+

+ 15
- 1
lib/services/orderAPI.dart 查看文件

11
  * @returns
11
  * @returns
12
  */
12
  */
13
 Future getOrderList(bool mine)async{
13
 Future getOrderList(bool mine)async{
14
-  return request('/order',options: Options(method: 'GET'),data: { 'mine': mine}).catchError((error) =>
14
+  return request('/order',options: Options(method: 'GET'),queryParameters: { 'mine': mine}).catchError((error) =>
15
+  { Fluttertoast.showToast(
16
+      msg: error.error['message']
17
+  ),});
18
+
19
+}
20
+
21
+
22
+/**
23
+ * 订单详情
24
+ * @param {*} data
25
+ * @returns
26
+ */
27
+Future orderInfo(String id)async{
28
+  return request('/order/$id',options: Options(method: 'GET'),).catchError((error) =>
15
   { Fluttertoast.showToast(
29
   { Fluttertoast.showToast(
16
       msg: error.error['message']
30
       msg: error.error['message']
17
   ),});
31
   ),});

+ 30
- 18
lib/widgets/OrderInfoCard.dart 查看文件

1
+import 'package:farmer_client/models/entities/OrderInfoModel.dart';
1
 import 'package:flutter/material.dart';
2
 import 'package:flutter/material.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
 import 'package:flutter_screenutil/flutter_screenutil.dart';
4
+import 'package:get/get.dart';
5
+import 'package:intl/intl.dart';
3
 
6
 
4
 import 'LinearGradientText.dart';
7
 import 'LinearGradientText.dart';
5
 
8
 
6
 class OrderInfoCard extends StatelessWidget {
9
 class OrderInfoCard extends StatelessWidget {
7
-  const OrderInfoCard({Key? key}) : super(key: key);
10
+  final OrderInfoModel item;
11
+  final String orderStateText;
12
+  final Color orderStateColor;
13
+
14
+ // final  DateTime timeNew=item.appointmentDate;
15
+
16
+  const OrderInfoCard({Key? key, required this.item, required this.orderStateColor, required this.orderStateText}) : super(key: key);
17
+
18
+
8
 
19
 
9
   @override
20
   @override
10
   Widget build(BuildContext context) {
21
   Widget build(BuildContext context) {
43
                                   // 0x17000000
54
                                   // 0x17000000
44
                                   ))),
55
                                   ))),
45
                       child: RichText(
56
                       child: RichText(
46
-                        text: const TextSpan(children: <InlineSpan>[
57
+                        text:  TextSpan(children: <InlineSpan>[
47
                           TextSpan(
58
                           TextSpan(
48
                               text: '订单编号:',
59
                               text: '订单编号:',
49
                               style: TextStyle(
60
                               style: TextStyle(
51
                                   fontSize: 16,
62
                                   fontSize: 16,
52
                                   fontWeight: FontWeight.bold)),
63
                                   fontWeight: FontWeight.bold)),
53
                           TextSpan(
64
                           TextSpan(
54
-                              text: 'XUHUI12345',
65
+                              text: item.orderNo.toString(),
55
                               style: TextStyle(
66
                               style: TextStyle(
56
                                   color: Color(0xff222222),
67
                                   color: Color(0xff222222),
57
                                   fontSize: 16,
68
                                   fontSize: 16,
62
                     Padding(
73
                     Padding(
63
                       padding: EdgeInsets.fromLTRB(0, 20, 0, 15),
74
                       padding: EdgeInsets.fromLTRB(0, 20, 0, 15),
64
                       child: RichText(
75
                       child: RichText(
65
-                        text: const TextSpan(children: <InlineSpan>[
76
+                        text:  TextSpan(children: <InlineSpan>[
66
                           TextSpan(
77
                           TextSpan(
67
                               text: '农机名称:',
78
                               text: '农机名称:',
68
                               style: TextStyle(
79
                               style: TextStyle(
70
                                   fontSize: 16,
81
                                   fontSize: 16,
71
                                   fontWeight: FontWeight.bold)),
82
                                   fontWeight: FontWeight.bold)),
72
                           TextSpan(
83
                           TextSpan(
73
-                              text: '老李家收割机MVGV-005',
84
+                              text: item.machineryName.toString(),
74
                               style: TextStyle(
85
                               style: TextStyle(
75
                                   color: Color(0xff222222),
86
                                   color: Color(0xff222222),
76
                                   fontSize: 16,
87
                                   fontSize: 16,
81
                     Padding(
92
                     Padding(
82
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
93
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
83
                       child: RichText(
94
                       child: RichText(
84
-                        text: const TextSpan(children: <InlineSpan>[
95
+                        text:  TextSpan(children: <InlineSpan>[
85
                           TextSpan(
96
                           TextSpan(
86
                               text: '作业面积:',
97
                               text: '作业面积:',
87
                               style: TextStyle(
98
                               style: TextStyle(
89
                                   fontSize: 16,
100
                                   fontSize: 16,
90
                                   fontWeight: FontWeight.bold)),
101
                                   fontWeight: FontWeight.bold)),
91
                           TextSpan(
102
                           TextSpan(
92
-                              text: '1',
103
+                              text: item.amount.toString(),
93
                               style: TextStyle(
104
                               style: TextStyle(
94
                                   color: Color(0xff222222),
105
                                   color: Color(0xff222222),
95
                                   fontSize: 16,
106
                                   fontSize: 16,
100
                     Padding(
111
                     Padding(
101
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
112
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
102
                       child: RichText(
113
                       child: RichText(
103
-                        text: const TextSpan(children: <InlineSpan>[
114
+                        text:  TextSpan(children: <InlineSpan>[
104
                           TextSpan(
115
                           TextSpan(
105
                               text: '需求时间:',
116
                               text: '需求时间:',
106
                               style: TextStyle(
117
                               style: TextStyle(
108
                                   fontSize: 16,
119
                                   fontSize: 16,
109
                                   fontWeight: FontWeight.bold)),
120
                                   fontWeight: FontWeight.bold)),
110
                           TextSpan(
121
                           TextSpan(
111
-                              text: '2018-08-21',
122
+                          // '${DateFormat("yyyy-MM-dd").format(item.appointmentDate.toString())}'
123
+                              text: DateFormat("yyyy-MM-dd").format(DateTime.parse(item.appointmentDate.toString())),
112
                               style: TextStyle(
124
                               style: TextStyle(
113
                                   color: Color(0xff222222),
125
                                   color: Color(0xff222222),
114
                                   fontSize: 16,
126
                                   fontSize: 16,
119
                     Padding(
131
                     Padding(
120
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
132
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
121
                       child: RichText(
133
                       child: RichText(
122
-                        text: const TextSpan(children: <InlineSpan>[
134
+                        text:  TextSpan(children: <InlineSpan>[
123
                           TextSpan(
135
                           TextSpan(
124
                               text: '下单时间:',
136
                               text: '下单时间:',
125
                               style: TextStyle(
137
                               style: TextStyle(
127
                                   fontSize: 16,
139
                                   fontSize: 16,
128
                                   fontWeight: FontWeight.bold)),
140
                                   fontWeight: FontWeight.bold)),
129
                           TextSpan(
141
                           TextSpan(
130
-                              text: '2022-04-13',
142
+                              text: DateFormat("yyyy-MM-dd").format(DateTime.parse(item.createDate.toString())),
143
+
131
                               style: TextStyle(
144
                               style: TextStyle(
132
                                   color: Color(0xff222222),
145
                                   color: Color(0xff222222),
133
                                   fontSize: 16,
146
                                   fontSize: 16,
138
                     Padding(
151
                     Padding(
139
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
152
                       padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
140
                       child: RichText(
153
                       child: RichText(
141
-                        text: const TextSpan(children: <InlineSpan>[
154
+                        text:  TextSpan(children: <InlineSpan>[
142
                           TextSpan(
155
                           TextSpan(
143
                               text: '订单状态:',
156
                               text: '订单状态:',
144
                               style: TextStyle(
157
                               style: TextStyle(
146
                                   fontSize: 16,
159
                                   fontSize: 16,
147
                                   fontWeight: FontWeight.bold)),
160
                                   fontWeight: FontWeight.bold)),
148
                           TextSpan(
161
                           TextSpan(
149
-                              text: '待付款',
162
+                              text: orderStateText,
150
                               style: TextStyle(
163
                               style: TextStyle(
151
-                                  color: Color(0xff51D4FF),
164
+                                  color:orderStateColor,
152
                                   fontSize: 16,
165
                                   fontSize: 16,
153
                                   fontWeight: FontWeight.bold)),
166
                                   fontWeight: FontWeight.bold)),
154
                         ]),
167
                         ]),
185
                                           fontWeight: FontWeight.bold)),
198
                                           fontWeight: FontWeight.bold)),
186
                                 ),
199
                                 ),
187
 
200
 
188
-
189
                               ],
201
                               ],
190
                             ),
202
                             ),
191
                             Padding(
203
                             Padding(
193
                               child: Row(
205
                               child: Row(
194
                                 mainAxisAlignment:
206
                                 mainAxisAlignment:
195
                                 MainAxisAlignment.spaceBetween,
207
                                 MainAxisAlignment.spaceBetween,
196
-                                children: const [
208
+                                children:  [
197
                                   Text('状态:',
209
                                   Text('状态:',
198
                                       style: TextStyle(
210
                                       style: TextStyle(
199
                                           color: Color(0xff666666),
211
                                           color: Color(0xff666666),
200
                                           fontSize: 16,
212
                                           fontSize: 16,
201
                                           fontWeight: FontWeight.bold)),
213
                                           fontWeight: FontWeight.bold)),
202
-                                  Text('待付款',
214
+                                  Text(orderStateText,
203
                                       style: TextStyle(
215
                                       style: TextStyle(
204
-                                          color: Color(0xff51D4FF),
216
+                                          color: orderStateColor,
205
                                           fontSize: 16,
217
                                           fontSize: 16,
206
                                           fontWeight: FontWeight.bold)),
218
                                           fontWeight: FontWeight.bold)),
207
                                 ],
219
                                 ],

+ 8
- 13
lib/widgets/OrderListCard.dart 查看文件

5
 import '../models/entities/OrderListAll.dart';
5
 import '../models/entities/OrderListAll.dart';
6
 import '../pages/OrderConfirmation/index.dart';
6
 import '../pages/OrderConfirmation/index.dart';
7
 import '../pages/orderInfo/index.dart';
7
 import '../pages/orderInfo/index.dart';
8
+import 'package:intl/intl.dart';
8
 import 'LinearGradientText.dart';
9
 import 'LinearGradientText.dart';
9
 
10
 
10
 
11
 
28
 
29
 
29
 class _OrderListCardPages extends State<OrderListCard> {
30
 class _OrderListCardPages extends State<OrderListCard> {
30
 
31
 
31
-
32
-
33
-  @override
34
-  void initState() {
35
-    // TODO: implement initState
36
-    super.initState();
37
-
38
-  }
39
-
40
   final OrderListAll item;
32
   final OrderListAll item;
41
 
33
 
34
+
42
   _OrderListCardPages(this.item);
35
   _OrderListCardPages(this.item);
43
 
36
 
44
 
37
 
94
 
87
 
95
   @override
88
   @override
96
   Widget build(BuildContext context) {
89
   Widget build(BuildContext context) {
97
-    return Container(
90
+    return
91
+      Container(
98
       width: 375.w,
92
       width: 375.w,
99
       height: 345.h,
93
       height: 345.h,
100
       margin: EdgeInsets.fromLTRB(0, 0, 0, 20),
94
       margin: EdgeInsets.fromLTRB(0, 0, 0, 20),
162
                             )),
156
                             )),
163
                         onTap: () {
157
                         onTap: () {
164
                           print('进入详情');
158
                           print('进入详情');
165
-                          Get.toNamed('/orderPageInfo');
159
+                          Get.toNamed('/orderPageInfo',arguments:{'id':item.orderId,'title':orderStates().title,'styleColor':orderStates().styleColor});
166
                         },
160
                         },
167
                       )
161
                       )
168
                     ],
162
                     ],
221
                                   fontSize: 16,
215
                                   fontSize: 16,
222
                                   fontWeight: FontWeight.bold)),
216
                                   fontWeight: FontWeight.bold)),
223
                           TextSpan(
217
                           TextSpan(
224
-                              text: item.appointmentDate.toString(),
218
+                              text: DateFormat("yyyy-MM-dd").format(DateTime.parse(item.appointmentDate.toString())),
219
+
225
                               style: TextStyle(
220
                               style: TextStyle(
226
                                   color: Color(0xff222222),
221
                                   color: Color(0xff222222),
227
                                   fontSize: 16,
222
                                   fontSize: 16,
240
                                   fontSize: 16,
235
                                   fontSize: 16,
241
                                   fontWeight: FontWeight.bold)),
236
                                   fontWeight: FontWeight.bold)),
242
                           TextSpan(
237
                           TextSpan(
243
-                              text: item.createDate.toString(),
238
+                              text: DateFormat("yyyy-MM-dd").format(DateTime.parse(item.createDate.toString())),
244
                               style: TextStyle(
239
                               style: TextStyle(
245
                                   color: Color(0xff222222),
240
                                   color: Color(0xff222222),
246
                                   fontSize: 16,
241
                                   fontSize: 16,

+ 75
- 75
pubspec.lock 查看文件

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