[baozhangchao] 3 years ago
parent
commit
d4146da0ec

BIN
images/HomesNOImgaes.png View File


BIN
images/HomesOFFImgaes.png View File


BIN
images/MineNOImgaes.png View File


BIN
images/MineOFFImgaes.png View File


BIN
images/OrdersNOImgaes.png View File


BIN
images/OrdersOFFImgaes.png View File


images/icons/deletes.png → images/icons/delete.png View File


BIN
images/newsOFFImages.png View File


BIN
images/newsONImages.png View File


+ 14
- 0
lib/models/entities/Address.dart View File

1
+class Address {
2
+  String? address;
3
+  bool? isDefault;
4
+  Address();
5
+
6
+  Address.fromJson(Map<String, dynamic> json)
7
+      : address = json["address"],
8
+        isDefault = json["isDefault"];
9
+
10
+  Map<String, dynamic> toJson() => {
11
+        'address': address,
12
+        'isDefault': isDefault,
13
+      };
14
+}

+ 1
- 0
lib/pages/addAddress/index.dart View File

1
+import 'package:flutter/material.dart';

+ 88
- 24
lib/pages/addressList/index.dart View File

1
+import 'package:farmer_client/models/entities/Address.dart';
2
+import 'package:farmer_client/pages/addressList/widget/AddressCard.dart';
3
+import 'package:farmer_client/widgets/DefaultButton.dart';
1
 import 'package:flutter/material.dart';
4
 import 'package:flutter/material.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
5
 import 'package:flutter_screenutil/flutter_screenutil.dart';
6
+import 'package:fluttertoast/fluttertoast.dart';
3
 
7
 
4
 class AddressList extends StatefulWidget {
8
 class AddressList extends StatefulWidget {
5
   const AddressList({Key? key}) : super(key: key);
9
   const AddressList({Key? key}) : super(key: key);
9
 }
13
 }
10
 
14
 
11
 class _AddressList extends State<AddressList> {
15
 class _AddressList extends State<AddressList> {
16
+
17
+  List<Address> addressList = [
18
+    Address.fromJson({'address': '777', 'isDefault': false}),
19
+    Address.fromJson({'address': '999', 'isDefault': false}),
20
+    Address.fromJson({'address': '这是一个正经的地址', 'isDefault': false}),
21
+  ];
22
+  void onChange(index) {
23
+    setState(() {
24
+      addressList.forEach((element) {
25
+        if (element.isDefault == true) {
26
+          element.isDefault = false;
27
+        }
28
+      });
29
+      addressList[index].isDefault = true;
30
+    });
31
+  }
32
+  void onDelete(index){
33
+    showDialog(
34
+        context: context,
35
+        builder: (context) {
36
+          return AlertDialog(
37
+              title: Text("提示信息"),
38
+              content: Text("您确定要删除此地址吗?"),
39
+              actions: <Widget>[
40
+                TextButton(
41
+                  child: Text("取消"),
42
+                  onPressed: () {
43
+                    print("取消");
44
+                    Navigator.pop(context, 'Cancle');
45
+                  },
46
+                ),
47
+                TextButton(
48
+                    child: Text("确定"),
49
+                    onPressed: () {
50
+                      // setState(() {
51
+                      //   addressList.remove(addressList[e]);
52
+                      // });
53
+                      Navigator.pop(context, "Ok");
54
+                      Fluttertoast.showToast(
55
+                          msg: '删除成功!');
56
+                    })
57
+              ]);
58
+        });
59
+  }
60
+
12
   @override
61
   @override
13
   Widget build(BuildContext context) {
62
   Widget build(BuildContext context) {
14
     return Scaffold(
63
     return Scaffold(
25
               fontWeight: FontWeight.bold),
74
               fontWeight: FontWeight.bold),
26
         ),
75
         ),
27
       ),
76
       ),
28
-      body: Container(
29
-        padding: EdgeInsets.all(15.w),
30
-        child: Column(
31
-          children: [
32
-            Text('地址'),
33
-            GestureDetector(
34
-              onTap: () {},
35
-              child: Container(
36
-                width: 345.w,
37
-                height: 49.h,
38
-                decoration: BoxDecoration(
39
-                  borderRadius: BorderRadius.all(Radius.circular(10.w)),
40
-                  color:Color(0xFFFF703B),
41
-                ),
42
-                child: Text(
43
-                  '+新增收货地址',
44
-                  style: TextStyle(
45
-                    color: Colors.white,
46
-                    fontWeight: FontWeight.bold,
47
-                    fontSize: 20.sp
48
-                  ),
77
+      body: ListView(
78
+        children: [
79
+          Container(
80
+            padding: EdgeInsets.all(15.w),
81
+            child: Column(
82
+              //左对齐
83
+              crossAxisAlignment: CrossAxisAlignment.start,
84
+              children: [
85
+                Column(
86
+                    children: addressList
87
+                        .asMap()
88
+                        .keys
89
+                        .map(
90
+                          (e) => AddressCard(
91
+                            No: e + 1,
92
+                            item: addressList[e],
93
+                            onChange: () {
94
+                              onChange(e);
95
+                            },
96
+                            onEdit: () {},
97
+                            onDelete: () {
98
+                              onDelete(e);
99
+                            },
100
+                          ),
101
+                        )
102
+                        .toList()),
103
+                DefaultButton(
104
+                  color: const Color(0xffffffff),
105
+                  backColor: const Color(0xFFFF703B),
106
+                  width: 345.w,
107
+                  height: 49.h,
108
+                  text: '+新增收货地址',
109
+                  onPressed: () {},
110
+                  margin: const EdgeInsets.all(0),
111
+                  fontSize: 20.sp,
112
+                  radius: 24.5.w,
49
                 ),
113
                 ),
50
-              ),
114
+              ],
51
             ),
115
             ),
52
-          ],
53
-        ),
116
+          ),
117
+        ],
54
       ),
118
       ),
55
     );
119
     );
56
   }
120
   }

+ 153
- 0
lib/pages/addressList/widget/AddressCard.dart View File

1
+import 'package:farmer_client/models/entities/Address.dart';
2
+import 'package:flutter/material.dart';
3
+import 'package:flutter_screenutil/flutter_screenutil.dart';
4
+import 'package:get/get_rx/src/rx_typedefs/rx_typedefs.dart';
5
+
6
+class AddressCard extends StatefulWidget {
7
+  final Address item;
8
+  final int No;
9
+  final GestureTapCallback onChange;
10
+  final GestureTapCallback onDelete;
11
+  final GestureTapCallback onEdit;
12
+  AddressCard(
13
+      {Key? key,
14
+      required this.item,
15
+      required this.No,
16
+      required this.onChange,
17
+      required this.onDelete,
18
+      required this.onEdit})
19
+      : super(key: key);
20
+
21
+  @override
22
+  _AddressCard createState() =>
23
+      _AddressCard(item, No, onChange, onDelete, onEdit);
24
+}
25
+
26
+class _AddressCard extends State<AddressCard> {
27
+  final Address item;
28
+  final int No;
29
+  final GestureTapCallback onChange;
30
+  final GestureTapCallback onDelete;
31
+  final GestureTapCallback onEdit;
32
+  _AddressCard(this.item, this.No, this.onChange, this.onDelete, this.onEdit);
33
+  @override
34
+  Widget build(BuildContext context) {
35
+    return Container(
36
+      width: 345.w,
37
+      padding: EdgeInsets.all(15.w),
38
+      margin: EdgeInsets.fromLTRB(0, 0, 0, 15.w),
39
+      decoration: BoxDecoration(
40
+        color: const Color(0xFFFFFFFF),
41
+        borderRadius: BorderRadius.all(Radius.circular(10.w)),
42
+        boxShadow: [
43
+          BoxShadow(
44
+              color: const Color(0x19000000),
45
+              offset: Offset(0, 5.w),
46
+              blurRadius: 12.w),
47
+        ],
48
+      ),
49
+      child: Column(
50
+        crossAxisAlignment: CrossAxisAlignment.start,
51
+        children: [
52
+          Row(
53
+            children: [
54
+              if (item.isDefault == true)
55
+                Container(
56
+                  margin: EdgeInsets.fromLTRB(0, 0, 5.w, 0),
57
+                  padding: EdgeInsets.symmetric(vertical: 1.w, horizontal: 5.w),
58
+                  decoration: BoxDecoration(
59
+                    color: const Color(0xffff0000),
60
+                    borderRadius: BorderRadius.all(Radius.circular(5.w)),
61
+                  ),
62
+                  child: Text(
63
+                    '默认地址',
64
+                    style: TextStyle(
65
+                      fontSize: 15.sp,
66
+                      fontWeight: FontWeight.bold,
67
+                      color: const Color(0xffffffff),
68
+                    ),
69
+                  ),
70
+                ),
71
+              Text(
72
+                '我的地址' + No.toString(),
73
+                style: TextStyle(fontSize: 15.sp, fontWeight: FontWeight.w700),
74
+              ),
75
+            ],
76
+          ),
77
+          GestureDetector(
78
+            onTap: onEdit,
79
+            child: Container(
80
+              padding: EdgeInsets.symmetric(vertical: 5.h, horizontal: 0),
81
+              decoration: BoxDecoration(
82
+                border: Border(
83
+                  bottom: BorderSide(
84
+                      width: 0.5.h,
85
+                      color: const Color(0xcc000000),
86
+                      style: BorderStyle.solid),
87
+                ),
88
+              ),
89
+              child: Row(
90
+                mainAxisAlignment: MainAxisAlignment.spaceBetween,
91
+                children: [
92
+                  Container(
93
+                    padding: EdgeInsets.symmetric(vertical: 5.w, horizontal: 0),
94
+                    width: 282.w,
95
+                    child: Text(
96
+                      item.address.toString(),
97
+                      //最多显示两行
98
+                      maxLines: 2,
99
+                      //多余文本用点点点表示
100
+                      overflow: TextOverflow.ellipsis,
101
+                      style: TextStyle(
102
+                        fontSize: 15.sp,
103
+                        color: const Color(0xff666666),
104
+                      ),
105
+                    ),
106
+                  ),
107
+                  Image.asset(
108
+                    'images/icons/edit.png',
109
+                    width: 33.w,
110
+                    height: 33.w,
111
+                  ),
112
+                ],
113
+              ),
114
+            ),
115
+          ),
116
+          Row(
117
+            mainAxisAlignment: MainAxisAlignment.spaceBetween,
118
+            children: [
119
+              GestureDetector(
120
+                onTap: onChange,
121
+                child: Row(
122
+                  children: [
123
+                    const Text('设为默认地址'),
124
+                    Radio<bool>(
125
+                        value: true,
126
+                        activeColor: const Color(0xFFFF703B),
127
+                        groupValue: item.isDefault,
128
+                        onChanged: (value){
129
+                          onChange();
130
+                        }),
131
+                  ],
132
+                ),
133
+              ),
134
+              GestureDetector(
135
+                onTap: onDelete,
136
+                child: Row(
137
+                  children: [
138
+                    const Text('删除'),
139
+                    Image.asset(
140
+                      'images/icons/delete.png',
141
+                      width: 25.w,
142
+                      height: 25.w,
143
+                    ),
144
+                  ],
145
+                ),
146
+              ),
147
+            ],
148
+          ),
149
+        ],
150
+      ),
151
+    );
152
+  }
153
+}

+ 1
- 0
lib/pages/login/login.dart View File

14
 
14
 
15
 
15
 
16
 class MyRouteLogin extends StatefulWidget {
16
 class MyRouteLogin extends StatefulWidget {
17
+
17
   @override
18
   @override
18
   State<MyRouteLogin> createState() => _RouteLogin();
19
   State<MyRouteLogin> createState() => _RouteLogin();
19
 }
20
 }

+ 4
- 2
lib/pages/splash/splash.dart View File

14
 
14
 
15
 class _SplashScreen extends State<SplashScreen> {
15
 class _SplashScreen extends State<SplashScreen> {
16
   handleOnFinish() {
16
   handleOnFinish() {
17
-    Get.off(Home());
18
-    // Get.toNamed("/addressList");
17
+    print(99999);
18
+
19
+    // Get.off(Home());
20
+    Get.toNamed("/addressList");
19
   }
21
   }
20
 
22
 
21
   @override
23
   @override

+ 13
- 21
lib/pages/splash/widgets/countdown.dart View File

1
-
2
 import 'dart:async';
1
 import 'dart:async';
3
 
2
 
4
 import 'package:farmer_client/utils/timer.dart';
3
 import 'package:farmer_client/utils/timer.dart';
20
   }, 1000);
19
   }, 1000);
21
 
20
 
22
   return Obx(
21
   return Obx(
23
-        () => GestureDetector(
24
-      onTap: () {
25
-        _timer.cancel();
26
-        // return;
27
-        // onFinish();
28
-      },
29
-      child: Container(
30
-        width: 50.w,
31
-        height: 30.h,
32
-        alignment: const Alignment(0, 0),
33
-        decoration: const BoxDecoration(
34
-            borderRadius: BorderRadius.all(Radius.circular(20)),
35
-            color: Color(0x77222222)),
36
-        child: Text(
37
-          _countdown.value.toString() + '跳过',
38
-          style: TextStyle(
39
-            fontSize: 13.sp,
40
-            letterSpacing: 2,
41
-            color: const Color(0xFFFFFFFF),
42
-          ),
22
+    () => Container(
23
+      width: 20.h,
24
+      height: 20.h,
25
+      alignment: const Alignment(0, 0),
26
+      decoration: const BoxDecoration(
27
+          borderRadius: BorderRadius.all(Radius.circular(20)),
28
+          color: Color(0x77222222)),
29
+      child: Text(
30
+        _countdown.value.toString(),
31
+        style: TextStyle(
32
+          fontSize: 13.sp,
33
+          letterSpacing: 2,
34
+          color: const Color(0xFFFFFFFF),
43
         ),
35
         ),
44
       ),
36
       ),
45
     ),
37
     ),

+ 9
- 4
lib/widgets/DefaultButton.dart View File

12
   final double? fontSize;
12
   final double? fontSize;
13
   final Color backColor;
13
   final Color backColor;
14
   final Color color;
14
   final Color color;
15
+  final double? radius;
15
 
16
 
16
   EdgeInsetsGeometry marginDefault =
17
   EdgeInsetsGeometry marginDefault =
17
   const EdgeInsets.fromLTRB(0, 90.0, 0, 30); //按钮默认的margin值
18
   const EdgeInsets.fromLTRB(0, 90.0, 0, 30); //按钮默认的margin值
24
     required this.width,
25
     required this.width,
25
     required this.height,
26
     required this.height,
26
     this.fontSize,
27
     this.fontSize,
28
+    this.radius,
27
     required this.backColor,
29
     required this.backColor,
28
     required this.color,
30
     required this.color,
29
   }) : super(key: key);
31
   }) : super(key: key);
31
   @override
33
   @override
32
   State createState() {
34
   State createState() {
33
     if (margin == null) {
35
     if (margin == null) {
34
-      return _DefaultButtonState(onPressed, text, marginDefault,width,height,fontSize,backColor,color);
36
+      return _DefaultButtonState(onPressed, text, marginDefault,width,height,fontSize,backColor,color,radius);
35
     }
37
     }
36
-    return _DefaultButtonState(onPressed, text, margin,width,height,fontSize,backColor,color);
38
+    return _DefaultButtonState(onPressed, text, margin,width,height,fontSize,backColor,color,radius);
37
   }
39
   }
38
 }
40
 }
39
 
41
 
47
   final double? fontSize;
49
   final double? fontSize;
48
   final Color backColor;
50
   final Color backColor;
49
   final Color color;
51
   final Color color;
52
+  final double? radius;
50
   _DefaultButtonState(
53
   _DefaultButtonState(
51
       this.onPressed,
54
       this.onPressed,
52
       this.text,
55
       this.text,
55
       this.height,
58
       this.height,
56
       this.fontSize,
59
       this.fontSize,
57
       this.backColor,
60
       this.backColor,
58
-      this.color
61
+      this.color,
62
+      this.radius
59
       );
63
       );
60
 
64
 
61
   @override
65
   @override
71
           disabledTextColor: const Color(0xF5F6F7ff),
75
           disabledTextColor: const Color(0xF5F6F7ff),
72
           colorBrightness: Brightness.dark,
76
           colorBrightness: Brightness.dark,
73
           shape:
77
           shape:
74
-          RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0)),
78
+          RoundedRectangleBorder(borderRadius: BorderRadius.circular(radius??5)),
75
           child: Text(text,style:  TextStyle(
79
           child: Text(text,style:  TextStyle(
76
               fontSize: fontSize,
80
               fontSize: fontSize,
81
+              fontWeight: FontWeight.bold,
77
               color: color,
82
               color: color,
78
           ),),
83
           ),),
79
           textColor: Colors.white,
84
           textColor: Colors.white,

+ 66
- 66
pubspec.lock View File

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

+ 28
- 0
pubspec.yaml View File

73
   uses-material-design: true
73
   uses-material-design: true
74
   # To add images to your application, add an images section, like this:
74
   # To add images to your application, add an images section, like this:
75
   assets:
75
   assets:
76
+<<<<<<< HEAD
76
     - images/icons/
77
     - images/icons/
77
     - images/
78
     - images/
79
+=======
80
+    - images/icon_login.png
81
+    - images/phoneCode.png
82
+    - images/index/HomesNOImgaes.png
83
+    - images/index/HomesOFFImgaes.png
84
+    - images/index/MineNOImgaes.png
85
+    - images/index/MineOFFImgaes.png
86
+    - images/index/newsOFFImages.png
87
+    - images/index/newsONImages.png
88
+    - images/index/OrdersNOImgaes.png
89
+    - images/index/OrdersOFFImgaes.png
90
+    - images/cars.png
91
+    - images/gpsImgae.png
92
+    - images/ordersLeft.png
93
+    - images/mineBack.png
94
+    - images/userMoren.png
95
+    - images/aboutUs.png
96
+    - images/feedbacks.png
97
+    - images/userRight.png
98
+    - images/versionUpdate.png
99
+    - images/logo.png
100
+    - images/splash.png
101
+    - images/icons/decorate.png
102
+    - images/icons/edit.png
103
+    - images/icons/delete.png
104
+    - images/ordersListImga.png
105
+>>>>>>> af576cb1ac2ecd65eb8a520ec14247dbabae4128
78
 
106
 
79
   # An image asset can refer to one or more resolution-specific "variants", see
107
   # An image asset can refer to one or more resolution-specific "variants", see
80
   # https://flutter.dev/assets-and-images/#resolution-aware.
108
   # https://flutter.dev/assets-and-images/#resolution-aware.