[baozhangchao] 3 년 전
부모
커밋
d4146da0ec

BIN
images/HomesNOImgaes.png 파일 보기


BIN
images/HomesOFFImgaes.png 파일 보기


BIN
images/MineNOImgaes.png 파일 보기


BIN
images/MineOFFImgaes.png 파일 보기


BIN
images/OrdersNOImgaes.png 파일 보기


BIN
images/OrdersOFFImgaes.png 파일 보기


images/icons/deletes.png → images/icons/delete.png 파일 보기


BIN
images/newsOFFImages.png 파일 보기


BIN
images/newsONImages.png 파일 보기


+ 14
- 0
lib/models/entities/Address.dart 파일 보기

@@ -0,0 +1,14 @@
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 파일 보기

@@ -0,0 +1 @@
1
+import 'package:flutter/material.dart';

+ 88
- 24
lib/pages/addressList/index.dart 파일 보기

@@ -1,5 +1,9 @@
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 4
 import 'package:flutter/material.dart';
2 5
 import 'package:flutter_screenutil/flutter_screenutil.dart';
6
+import 'package:fluttertoast/fluttertoast.dart';
3 7
 
4 8
 class AddressList extends StatefulWidget {
5 9
   const AddressList({Key? key}) : super(key: key);
@@ -9,6 +13,51 @@ class AddressList extends StatefulWidget {
9 13
 }
10 14
 
11 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 61
   @override
13 62
   Widget build(BuildContext context) {
14 63
     return Scaffold(
@@ -25,32 +74,47 @@ class _AddressList extends State<AddressList> {
25 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 파일 보기

@@ -0,0 +1,153 @@
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 파일 보기

@@ -14,6 +14,7 @@ import '../home/index.dart';
14 14
 
15 15
 
16 16
 class MyRouteLogin extends StatefulWidget {
17
+
17 18
   @override
18 19
   State<MyRouteLogin> createState() => _RouteLogin();
19 20
 }

+ 4
- 2
lib/pages/splash/splash.dart 파일 보기

@@ -14,8 +14,10 @@ class SplashScreen extends StatefulWidget {
14 14
 
15 15
 class _SplashScreen extends State<SplashScreen> {
16 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 23
   @override

+ 13
- 21
lib/pages/splash/widgets/countdown.dart 파일 보기

@@ -1,4 +1,3 @@
1
-
2 1
 import 'dart:async';
3 2
 
4 3
 import 'package:farmer_client/utils/timer.dart';
@@ -20,26 +19,19 @@ Widget countdown(int sec, void Function() onFinish) {
20 19
   }, 1000);
21 20
 
22 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 파일 보기

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

+ 66
- 66
pubspec.lock 파일 보기

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

+ 28
- 0
pubspec.yaml 파일 보기

@@ -73,8 +73,36 @@ flutter:
73 73
   uses-material-design: true
74 74
   # To add images to your application, add an images section, like this:
75 75
   assets:
76
+<<<<<<< HEAD
76 77
     - images/icons/
77 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 107
   # An image asset can refer to one or more resolution-specific "variants", see
80 108
   # https://flutter.dev/assets-and-images/#resolution-aware.