[baozhangchao] преди 3 години
родител
ревизия
ea69eaf351

+ 35
- 0
lib/models/entities/NewsInformationModel.dart Целия файл

@@ -0,0 +1,35 @@
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 Целия файл

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

+ 24
- 2
lib/pages/infomation/index.dart Целия файл

@@ -2,14 +2,36 @@ import 'package:farmer_client/pages/infomation/widgets/Information/index.dart';
2 2
 import 'package:farmer_client/widgets/layout/BasicPage.dart';
3 3
 import 'package:flutter/material.dart';
4 4
 
5
+import '../../models/entities/NewsInformationModel.dart';
6
+import '../../services/news.dart';
7
+
5 8
 class Infomation extends BasicPage {
6 9
   Infomation({Key? key}) : super(key: key) {
7 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 28
   @override
12 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,22 +3,30 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
3 3
 import 'package:get/get.dart';
4 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 9
 import '../../../ArticleInfo/ArticleInfo.dart';
7 10
 
8 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 15
   @override
12 16
   State<Information> createState() => _InformationState();
17
+
18
+  // getNewsList
13 19
 }
14 20
 
15 21
 class _InformationState extends State<Information> {
22
+  late final NewsInformationModel item;
23
+
24
+
16 25
   @override
17 26
   Widget build(BuildContext context) {
18 27
     return Column(
19 28
       children: [
20 29
         // ListTile用不好
21
-
22 30
         GestureDetector(
23 31
           child: Container(
24 32
               padding: EdgeInsets.fromLTRB(0, 30, 0, 30),
@@ -47,7 +55,7 @@ class _InformationState extends State<Information> {
47 55
                       Container(
48 56
                         width: 240.w,
49 57
                         padding: EdgeInsets.fromLTRB(0, 0, 0, 30),
50
-                        child: Text("我我就是一个标题,什阿三大苏打333萨达萨达萨达v么特不是",
58
+                        child: Text('',
51 59
                             softWrap: true,
52 60
                             maxLines: 2,
53 61
                             textAlign: TextAlign.left,
@@ -58,7 +66,8 @@ class _InformationState extends State<Information> {
58 66
                             )),
59 67
                       ),
60 68
                       Container(
61
-                        child: Text('2022-02-09'),
69
+
70
+                        child: Text(''),
62 71
                       )
63 72
                     ],
64 73
                   )
@@ -68,55 +77,6 @@ class _InformationState extends State<Information> {
68 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,3 +1,4 @@
1
+import 'package:farmer_client/widgets/NullCard.dart';
1 2
 import 'package:flutter/material.dart';
2 3
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3 4
 
@@ -32,7 +33,8 @@ class _OrderPageState extends State<OrderPage> {
32 33
 
33 34
   @override
34 35
   Widget build(BuildContext context) {
35
-    return Column(
36
+    return orderListItem.length >= 0?
37
+      Column(
36 38
       children: [
37 39
         Container(
38 40
           padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
@@ -69,6 +71,6 @@ class _OrderPageState extends State<OrderPage> {
69 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,83 +4,169 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
4 4
 import 'package:fluttertoast/fluttertoast.dart';
5 5
 import 'package:get/get.dart';
6 6
 
7
+import '../../models/entities/OrderInfoModel.dart';
8
+import '../../services/orderAPI.dart';
7 9
 import '../../widgets/OrderInfoCard.dart';
8 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 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 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 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 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 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 Целия файл

@@ -0,0 +1,36 @@
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,7 +11,21 @@ import 'package:fluttertoast/fluttertoast.dart';
11 11
  * @returns
12 12
  */
13 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 29
   { Fluttertoast.showToast(
16 30
       msg: error.error['message']
17 31
   ),});

+ 30
- 18
lib/widgets/OrderInfoCard.dart Целия файл

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

+ 8
- 13
lib/widgets/OrderListCard.dart Целия файл

@@ -5,6 +5,7 @@ import 'package:get/get.dart';
5 5
 import '../models/entities/OrderListAll.dart';
6 6
 import '../pages/OrderConfirmation/index.dart';
7 7
 import '../pages/orderInfo/index.dart';
8
+import 'package:intl/intl.dart';
8 9
 import 'LinearGradientText.dart';
9 10
 
10 11
 
@@ -28,17 +29,9 @@ class StyleObj {
28 29
 
29 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 32
   final OrderListAll item;
41 33
 
34
+
42 35
   _OrderListCardPages(this.item);
43 36
 
44 37
 
@@ -94,7 +87,8 @@ class _OrderListCardPages extends State<OrderListCard> {
94 87
 
95 88
   @override
96 89
   Widget build(BuildContext context) {
97
-    return Container(
90
+    return
91
+      Container(
98 92
       width: 375.w,
99 93
       height: 345.h,
100 94
       margin: EdgeInsets.fromLTRB(0, 0, 0, 20),
@@ -162,7 +156,7 @@ class _OrderListCardPages extends State<OrderListCard> {
162 156
                             )),
163 157
                         onTap: () {
164 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,7 +215,8 @@ class _OrderListCardPages extends State<OrderListCard> {
221 215
                                   fontSize: 16,
222 216
                                   fontWeight: FontWeight.bold)),
223 217
                           TextSpan(
224
-                              text: item.appointmentDate.toString(),
218
+                              text: DateFormat("yyyy-MM-dd").format(DateTime.parse(item.appointmentDate.toString())),
219
+
225 220
                               style: TextStyle(
226 221
                                   color: Color(0xff222222),
227 222
                                   fontSize: 16,
@@ -240,7 +235,7 @@ class _OrderListCardPages extends State<OrderListCard> {
240 235
                                   fontSize: 16,
241 236
                                   fontWeight: FontWeight.bold)),
242 237
                           TextSpan(
243
-                              text: item.createDate.toString(),
238
+                              text: DateFormat("yyyy-MM-dd").format(DateTime.parse(item.createDate.toString())),
244 239
                               style: TextStyle(
245 240
                                   color: Color(0xff222222),
246 241
                                   fontSize: 16,

+ 75
- 75
pubspec.lock Целия файл

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