Sfoglia il codice sorgente

add ListesyeRefresh

[baozhangchao] 3 anni fa
parent
commit
49f77c6652

+ 1
- 1
lib/main.dart Vedi File

@@ -30,7 +30,7 @@ class MyApp extends StatelessWidget {
30 30
       designSize: const Size(375, 812),
31 31
       minTextAdapt: true,
32 32
       splitScreenMode: true,
33
-      builder: (_) {
33
+      builder: (context , child) {
34 34
         return GetMaterialApp(
35 35
           localizationsDelegates: const [
36 36
             GlobalMaterialLocalizations.delegate,

+ 1
- 1
lib/pages/login/login.dart Vedi File

@@ -37,7 +37,7 @@ class _RouteLogin extends State<MyRouteLogin> {
37 37
           count = 60; //重置时间
38 38
           buttonText = '发送验证码'; //重置按钮文本
39 39
         } else {
40
-          buttonText = '重新发送($count)'; //更新文本内容
40
+          buttonText = '($count)s重发'; //更新文本内容
41 41
         }
42 42
       });
43 43
     });

+ 111
- 4
lib/pages/order/index.dart Vedi File

@@ -1,15 +1,122 @@
1
+import 'package:farmer_client/pages/order/widgets/index.dart';
1 2
 import 'package:farmer_client/widgets/layout/BasicPage.dart';
2 3
 import 'package:flutter/material.dart';
3
-import './widgets/order/index.dart';
4
+import 'package:flutter_easyrefresh/easy_refresh.dart';
5
+import 'package:farmer_client/widgets/NullCard.dart';
6
+import 'package:flutter/material.dart';
7
+import 'package:flutter_easyloading/flutter_easyloading.dart';
8
+import 'package:flutter_easyrefresh/easy_refresh.dart';
9
+import 'package:flutter_screenutil/flutter_screenutil.dart';
10
+import 'package:fluttertoast/fluttertoast.dart';
11
+import 'package:get/get.dart';
12
+import 'package:get/get_rx/src/rx_types/rx_types.dart';
13
+import '../../models/entities/OrderListAll.dart';
14
+import '../../services/orderAPI.dart';
15
+import '../../widgets/OrderListCard.dart';
4 16
 
5
-class Order extends BasicPage {
6
-  Order({Key? key}) : super(key: key) {
17
+class OrderPage extends BasicPage {
18
+  OrderPage({Key? key}) : super(key: key) {
7 19
     tabIndex = 1;
8 20
     naviTitle = '订单';
9 21
   }
22
+  EasyRefreshController _controller = EasyRefreshController();
23
+
24
+  final orderListItem = Rx<List<OrderListAll>>([]);
25
+  final newOrderList = Rx<List<OrderListAll>>([]);
26
+  var pageIndex = 1; //页数
27
+  var count = 10; //每页10条
28
+  late int maxSum; //最多条数
29
+  int _count = 0;
30
+  Map<String, dynamic> params = {'pageNum': 1,'mine':true};
31
+
32
+  void getNewData() {
33
+    pageIndex = 1;
34
+    params['pageNum'] = pageIndex;
35
+    print(params['pageNum']);
36
+    getOrderList(params).then((value) {
37
+      maxSum = value['total'];
38
+
39
+      List<OrderListAll> list = [];
40
+      value['records'].forEach((item) {
41
+        list.add(OrderListAll.fromJson(item));
42
+      });
43
+      orderListItem(list);
44
+      newOrderList(list);
45
+      _count = orderListItem.value.length;
46
+    });
47
+  }
10 48
 
49
+  void getMoreData() {
50
+    pageIndex++;
51
+    params['pageNum'] = pageIndex;
52
+    print(params['pageNum']);
53
+    getOrderList(params).then((value) {
54
+      maxSum = value['total'];
55
+      List<OrderListAll> list = [];
56
+      List<OrderListAll> Newlist = [];
57
+      value['records'].forEach((item) {
58
+        list.add(OrderListAll.fromJson(item));
59
+      });
60
+      newOrderList.value.addAll(list);
61
+      Newlist.addAll(newOrderList.value);
62
+      orderListItem(Newlist);
63
+      _count = orderListItem.value.length;
64
+    });
65
+  }
66
+
67
+@override
68
+  void beforeShow() {
69
+    // TODO: implement beforeShow
70
+    super.beforeShow();
71
+    getNewData();
72
+  }
11 73
   @override
12 74
   Widget builder(BuildContext context) {
13
-    return const OrderPage();
75
+    return Container(
76
+      // padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
77
+      child:Column(
78
+        children:  [
79
+          OrderHead(),
80
+          Container(
81
+            height: 480.w,
82
+            child:EasyRefresh(
83
+              controller: _controller,
84
+              firstRefresh: true,
85
+              onRefresh: () async {
86
+                await Future.delayed(Duration(seconds: 1), () {
87
+                  print("下拉刷新-----");
88
+                  getNewData();
89
+                  _controller.resetLoadState();
90
+                  print('8888888888888888+$_controller');
91
+                  _controller.finishRefresh(noMore: true);
92
+                });
93
+              },
94
+              onLoad: () async {
95
+                await Future.delayed(Duration(seconds: 1), () {
96
+                  if (_count == maxSum) {
97
+                    Fluttertoast.showToast(msg: '暂无更多数据哦');
98
+                  } else {
99
+                    getMoreData();
100
+                  }
101
+                  _controller.finishLoad(noMore: _count >= maxSum);
102
+
103
+                });
104
+              },
105
+              child: Obx(
106
+                    () => orderListItem.value.length > 0
107
+                    ?
108
+                Column(
109
+                  mainAxisSize: MainAxisSize.min,
110
+                  children: orderListItem.value
111
+                      .map((item) => OrderListCard(item: item))
112
+                      .toList(),
113
+                ): NullCard(text: '您还没有新的订单!'),
114
+              ),
115
+            ) ,
116
+          )
117
+
118
+        ],
119
+      ) ,
120
+    );
14 121
   }
15 122
 }

+ 42
- 0
lib/pages/order/widgets/index.dart Vedi File

@@ -0,0 +1,42 @@
1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+
4
+class OrderHead extends StatelessWidget {
5
+  const OrderHead({Key? key}) : super(key: key);
6
+
7
+  @override
8
+  Widget build(BuildContext context) {
9
+    return Container(
10
+      padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
11
+      height: 55.w,
12
+      decoration: BoxDecoration(color: Colors.white),
13
+      child: Row(
14
+        mainAxisAlignment: MainAxisAlignment.spaceBetween,
15
+        children: [
16
+          Row(
17
+            children: [
18
+              Padding(
19
+                padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
20
+                child: Image(
21
+                  image: AssetImage('images/ordersListImga.png'),
22
+                  fit: BoxFit.cover,
23
+                  width: 18.w,
24
+                ),
25
+              ),
26
+              Text(
27
+                '订单列表',
28
+                style: TextStyle(
29
+                    color: Color(0xff222222),
30
+                    fontSize: 20.sp,
31
+                    fontWeight: FontWeight.bold),
32
+              )
33
+            ],
34
+          ),
35
+        ],
36
+      ),
37
+    );
38
+
39
+  }
40
+}
41
+
42
+

+ 0
- 86
lib/pages/order/widgets/order/index.dart Vedi File

@@ -1,86 +0,0 @@
1
-import 'package:farmer_client/widgets/NullCard.dart';
2
-import 'package:flutter/material.dart';
3
-import 'package:flutter_easyloading/flutter_easyloading.dart';
4
-import 'package:flutter_screenutil/flutter_screenutil.dart';
5
-import 'package:get/get_rx/src/rx_types/rx_types.dart';
6
-
7
-import '../../../../models/entities/OrderListAll.dart';
8
-import '../../../../services/orderAPI.dart';
9
-import '../../../../widgets/OrderListCard.dart';
10
-import '../../../orderInfo/index.dart';
11
-
12
-class OrderPage extends StatefulWidget {
13
-  const OrderPage({Key? key}) : super(key: key);
14
-
15
-  @override
16
-  State<OrderPage> createState() => _OrderPageState();
17
-}
18
-
19
-class _OrderPageState extends State<OrderPage> {
20
-  final orderListItem = Rx<List<OrderListAll>>([]);
21
-
22
-  @override
23
-  void initState() {
24
-    // TODO: implement initState
25
-    super.initState();
26
-
27
-    getOrderList(true).then((value) {
28
-      EasyLoading.show(status: '数据加载中...');
29
-
30
-      final list = <OrderListAll>[];
31
-      setState(() {
32
-        value['records'].forEach((item) {
33
-          list.add(OrderListAll.fromJson(item));
34
-        });
35
-      });
36
-      orderListItem(list);
37
-      EasyLoading.dismiss();
38
-
39
-    });
40
-  }
41
-
42
-  @override
43
-  Widget build(BuildContext context) {
44
-    return orderListItem().length > 0
45
-        ? Column(
46
-            children: [
47
-              Container(
48
-                padding: EdgeInsets.fromLTRB(15, 0, 15, 0),
49
-                height: 55.w,
50
-                decoration: BoxDecoration(color: Colors.white),
51
-                child: Row(
52
-                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
53
-                  children: [
54
-                    Row(
55
-                      children: [
56
-                        Padding(
57
-                          padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
58
-                          child: Image(
59
-                            image: AssetImage('images/ordersListImga.png'),
60
-                            fit: BoxFit.cover,
61
-                            width: 18.w,
62
-                          ),
63
-                        ),
64
-                        Text(
65
-                          '订单列表',
66
-                          style: TextStyle(
67
-                              color: Color(0xff222222),
68
-                              fontSize: 20.sp,
69
-                              fontWeight: FontWeight.bold),
70
-                        )
71
-                      ],
72
-                    ),
73
-                  ],
74
-                ),
75
-              ),
76
-              Column(
77
-                mainAxisSize: MainAxisSize.min,
78
-                children: orderListItem()
79
-                    .map((item) => OrderListCard(item: item))
80
-                    .toList(),
81
-              ),
82
-            ],
83
-          )
84
-        : NullCard(text: '您还没有新的订单!');
85
-  }
86
-}

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

@@ -10,7 +10,7 @@ List<GetPage> pages = [
10 10
         return box.hasData('token') ? Home() : MyRouteLogin();
11 11
       }),
12 12
   GetPage(name: '/main', page: () => Main()),
13
-  GetPage(name: '/order', page: () => Order()),
13
+  GetPage(name: '/order', page: () => OrderPage()),
14 14
   GetPage(name: '/infomation', page: () => Infomation()),
15 15
   GetPage(name: '/ArticleInfo', page: () => ArticleInfo()), //资讯详情
16 16
   // GetPage(name: '/splash', page: () => SplashScreen()), // SplashScreen

+ 2
- 2
lib/services/orderAPI.dart Vedi File

@@ -7,9 +7,9 @@ import 'package:fluttertoast/fluttertoast.dart';
7 7
  * @param {*} data
8 8
  * @returns
9 9
  */
10
-Future getOrderList(bool mine) async {
10
+Future getOrderList(params) async {
11 11
   return request('/order',
12
-          options: Options(method: 'GET'), queryParameters: {'mine': mine})
12
+          options: Options(method: 'GET'), queryParameters: params)
13 13
       .catchError((error) => {
14 14
             Fluttertoast.showToast(msg: error.error['message']),
15 15
           });

+ 98
- 95
pubspec.lock Vedi File

@@ -5,175 +5,175 @@ packages:
5 5
     dependency: transitive
6 6
     description:
7 7
       name: _fe_analyzer_shared
8
-      url: "https://pub.flutter-io.cn"
8
+      url: "https://pub.dartlang.org"
9 9
     source: hosted
10
-    version: "39.0.0"
10
+    version: "40.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
-    version: "4.0.0"
38
+    version: "4.1.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
-    version: "2.3.0"
45
+    version: "2.3.1"
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.2"
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
   ff_stars:
159 159
     dependency: "direct main"
160 160
     description:
161 161
       name: ff_stars
162
-      url: "https://pub.flutter-io.cn"
162
+      url: "https://pub.dartlang.org"
163 163
     source: hosted
164 164
     version: "1.0.0"
165 165
   ffi:
166 166
     dependency: transitive
167 167
     description:
168 168
       name: ffi
169
-      url: "https://pub.flutter-io.cn"
169
+      url: "https://pub.dartlang.org"
170 170
     source: hosted
171
-    version: "1.1.2"
171
+    version: "1.2.1"
172 172
   file:
173 173
     dependency: transitive
174 174
     description:
175 175
       name: file
176
-      url: "https://pub.flutter-io.cn"
176
+      url: "https://pub.dartlang.org"
177 177
     source: hosted
178 178
     version: "6.1.2"
179 179
   flutter:
@@ -188,11 +188,18 @@ packages:
188 188
       url: "https://pub.dartlang.org"
189 189
     source: hosted
190 190
     version: "3.0.3"
191
+  flutter_easyrefresh:
192
+    dependency: "direct main"
193
+    description:
194
+      name: flutter_easyrefresh
195
+      url: "https://pub.dartlang.org"
196
+    source: hosted
197
+    version: "2.2.1"
191 198
   flutter_lints:
192 199
     dependency: "direct dev"
193 200
     description:
194 201
       name: flutter_lints
195
-      url: "https://pub.flutter-io.cn"
202
+      url: "https://pub.dartlang.org"
196 203
     source: hosted
197 204
     version: "1.0.4"
198 205
   flutter_localizations:
@@ -204,17 +211,16 @@ packages:
204 211
     dependency: transitive
205 212
     description:
206 213
       name: flutter_plugin_android_lifecycle
207
-      url: "https://pub.flutter-io.cn"
214
+      url: "https://pub.dartlang.org"
208 215
     source: hosted
209
-    version: "2.0.5"
216
+    version: "2.0.6"
210 217
   flutter_screenutil:
211 218
     dependency: "direct main"
212 219
     description:
213 220
       name: flutter_screenutil
214
-      url: "https://pub.flutter-io.cn"
221
+      url: "https://pub.dartlang.org"
215 222
     source: hosted
216
-<<<<<<< HEAD
217
-    version: "5.4.0+1"
223
+    version: "5.5.3+1"
218 224
   flutter_spinkit:
219 225
     dependency: transitive
220 226
     description:
@@ -222,9 +228,6 @@ packages:
222 228
       url: "https://pub.dartlang.org"
223 229
     source: hosted
224 230
     version: "5.1.0"
225
-=======
226
-    version: "5.5.2"
227
->>>>>>> b052c991e6c96dc1b28c3fa153d55d36d0e0272a
228 231
   flutter_test:
229 232
     dependency: "direct dev"
230 233
     description: flutter
@@ -239,231 +242,231 @@ packages:
239 242
     dependency: "direct main"
240 243
     description:
241 244
       name: fluttertoast
242
-      url: "https://pub.flutter-io.cn"
245
+      url: "https://pub.dartlang.org"
243 246
     source: hosted
244 247
     version: "8.0.9"
245 248
   get:
246 249
     dependency: "direct main"
247 250
     description:
248 251
       name: get
249
-      url: "https://pub.flutter-io.cn"
252
+      url: "https://pub.dartlang.org"
250 253
     source: hosted
251 254
     version: "4.6.1"
252 255
   get_storage:
253 256
     dependency: "direct main"
254 257
     description:
255 258
       name: get_storage
256
-      url: "https://pub.flutter-io.cn"
259
+      url: "https://pub.dartlang.org"
257 260
     source: hosted
258 261
     version: "2.0.3"
259 262
   glob:
260 263
     dependency: transitive
261 264
     description:
262 265
       name: glob
263
-      url: "https://pub.flutter-io.cn"
266
+      url: "https://pub.dartlang.org"
264 267
     source: hosted
265 268
     version: "2.0.2"
266 269
   http_parser:
267 270
     dependency: transitive
268 271
     description:
269 272
       name: http_parser
270
-      url: "https://pub.flutter-io.cn"
273
+      url: "https://pub.dartlang.org"
271 274
     source: hosted
272
-    version: "4.0.0"
275
+    version: "4.0.1"
273 276
   intl:
274 277
     dependency: transitive
275 278
     description:
276 279
       name: intl
277
-      url: "https://pub.flutter-io.cn"
280
+      url: "https://pub.dartlang.org"
278 281
     source: hosted
279 282
     version: "0.17.0"
280 283
   js:
281 284
     dependency: transitive
282 285
     description:
283 286
       name: js
284
-      url: "https://pub.flutter-io.cn"
287
+      url: "https://pub.dartlang.org"
285 288
     source: hosted
286 289
     version: "0.6.3"
287 290
   json_annotation:
288 291
     dependency: transitive
289 292
     description:
290 293
       name: json_annotation
291
-      url: "https://pub.flutter-io.cn"
294
+      url: "https://pub.dartlang.org"
292 295
     source: hosted
293 296
     version: "4.5.0"
294 297
   json_serializable:
295 298
     dependency: "direct main"
296 299
     description:
297 300
       name: json_serializable
298
-      url: "https://pub.flutter-io.cn"
301
+      url: "https://pub.dartlang.org"
299 302
     source: hosted
300 303
     version: "6.2.0"
301 304
   lints:
302 305
     dependency: transitive
303 306
     description:
304 307
       name: lints
305
-      url: "https://pub.flutter-io.cn"
308
+      url: "https://pub.dartlang.org"
306 309
     source: hosted
307 310
     version: "1.0.1"
308 311
   logging:
309 312
     dependency: transitive
310 313
     description:
311 314
       name: logging
312
-      url: "https://pub.flutter-io.cn"
315
+      url: "https://pub.dartlang.org"
313 316
     source: hosted
314 317
     version: "1.0.2"
315 318
   matcher:
316 319
     dependency: transitive
317 320
     description:
318 321
       name: matcher
319
-      url: "https://pub.flutter-io.cn"
322
+      url: "https://pub.dartlang.org"
320 323
     source: hosted
321 324
     version: "0.12.11"
322 325
   material_color_utilities:
323 326
     dependency: transitive
324 327
     description:
325 328
       name: material_color_utilities
326
-      url: "https://pub.flutter-io.cn"
329
+      url: "https://pub.dartlang.org"
327 330
     source: hosted
328 331
     version: "0.1.3"
329 332
   meta:
330 333
     dependency: transitive
331 334
     description:
332 335
       name: meta
333
-      url: "https://pub.flutter-io.cn"
336
+      url: "https://pub.dartlang.org"
334 337
     source: hosted
335 338
     version: "1.7.0"
336 339
   package_config:
337 340
     dependency: transitive
338 341
     description:
339 342
       name: package_config
340
-      url: "https://pub.flutter-io.cn"
343
+      url: "https://pub.dartlang.org"
341 344
     source: hosted
342 345
     version: "2.0.2"
343 346
   path:
344 347
     dependency: transitive
345 348
     description:
346 349
       name: path
347
-      url: "https://pub.flutter-io.cn"
350
+      url: "https://pub.dartlang.org"
348 351
     source: hosted
349 352
     version: "1.8.0"
350 353
   path_provider:
351 354
     dependency: transitive
352 355
     description:
353 356
       name: path_provider
354
-      url: "https://pub.flutter-io.cn"
357
+      url: "https://pub.dartlang.org"
355 358
     source: hosted
356
-    version: "2.0.9"
359
+    version: "2.0.10"
357 360
   path_provider_android:
358 361
     dependency: transitive
359 362
     description:
360 363
       name: path_provider_android
361
-      url: "https://pub.flutter-io.cn"
364
+      url: "https://pub.dartlang.org"
362 365
     source: hosted
363
-    version: "2.0.13"
366
+    version: "2.0.14"
364 367
   path_provider_ios:
365 368
     dependency: transitive
366 369
     description:
367 370
       name: path_provider_ios
368
-      url: "https://pub.flutter-io.cn"
371
+      url: "https://pub.dartlang.org"
369 372
     source: hosted
370
-    version: "2.0.8"
373
+    version: "2.0.9"
371 374
   path_provider_linux:
372 375
     dependency: transitive
373 376
     description:
374 377
       name: path_provider_linux
375
-      url: "https://pub.flutter-io.cn"
378
+      url: "https://pub.dartlang.org"
376 379
     source: hosted
377
-    version: "2.1.5"
380
+    version: "2.1.6"
378 381
   path_provider_macos:
379 382
     dependency: transitive
380 383
     description:
381 384
       name: path_provider_macos
382
-      url: "https://pub.flutter-io.cn"
385
+      url: "https://pub.dartlang.org"
383 386
     source: hosted
384
-    version: "2.0.5"
387
+    version: "2.0.6"
385 388
   path_provider_platform_interface:
386 389
     dependency: transitive
387 390
     description:
388 391
       name: path_provider_platform_interface
389
-      url: "https://pub.flutter-io.cn"
392
+      url: "https://pub.dartlang.org"
390 393
     source: hosted
391
-    version: "2.0.3"
394
+    version: "2.0.4"
392 395
   path_provider_windows:
393 396
     dependency: transitive
394 397
     description:
395 398
       name: path_provider_windows
396
-      url: "https://pub.flutter-io.cn"
399
+      url: "https://pub.dartlang.org"
397 400
     source: hosted
398
-    version: "2.0.5"
401
+    version: "2.0.6"
399 402
   permission_handler:
400 403
     dependency: "direct main"
401 404
     description:
402 405
       name: permission_handler
403
-      url: "https://pub.flutter-io.cn"
406
+      url: "https://pub.dartlang.org"
404 407
     source: hosted
405 408
     version: "9.2.0"
406 409
   permission_handler_android:
407 410
     dependency: transitive
408 411
     description:
409 412
       name: permission_handler_android
410
-      url: "https://pub.flutter-io.cn"
413
+      url: "https://pub.dartlang.org"
411 414
     source: hosted
412 415
     version: "9.0.2+1"
413 416
   permission_handler_apple:
414 417
     dependency: transitive
415 418
     description:
416 419
       name: permission_handler_apple
417
-      url: "https://pub.flutter-io.cn"
420
+      url: "https://pub.dartlang.org"
418 421
     source: hosted
419 422
     version: "9.0.4"
420 423
   permission_handler_platform_interface:
421 424
     dependency: transitive
422 425
     description:
423 426
       name: permission_handler_platform_interface
424
-      url: "https://pub.flutter-io.cn"
427
+      url: "https://pub.dartlang.org"
425 428
     source: hosted
426 429
     version: "3.7.0"
427 430
   permission_handler_windows:
428 431
     dependency: transitive
429 432
     description:
430 433
       name: permission_handler_windows
431
-      url: "https://pub.flutter-io.cn"
434
+      url: "https://pub.dartlang.org"
432 435
     source: hosted
433 436
     version: "0.1.0"
434 437
   platform:
435 438
     dependency: transitive
436 439
     description:
437 440
       name: platform
438
-      url: "https://pub.flutter-io.cn"
441
+      url: "https://pub.dartlang.org"
439 442
     source: hosted
440 443
     version: "3.1.0"
441 444
   plugin_platform_interface:
442 445
     dependency: transitive
443 446
     description:
444 447
       name: plugin_platform_interface
445
-      url: "https://pub.flutter-io.cn"
448
+      url: "https://pub.dartlang.org"
446 449
     source: hosted
447 450
     version: "2.1.2"
448 451
   process:
449 452
     dependency: transitive
450 453
     description:
451 454
       name: process
452
-      url: "https://pub.flutter-io.cn"
455
+      url: "https://pub.dartlang.org"
453 456
     source: hosted
454 457
     version: "4.2.4"
455 458
   pub_semver:
456 459
     dependency: transitive
457 460
     description:
458 461
       name: pub_semver
459
-      url: "https://pub.flutter-io.cn"
462
+      url: "https://pub.dartlang.org"
460 463
     source: hosted
461 464
     version: "2.1.1"
462 465
   pubspec_parse:
463 466
     dependency: transitive
464 467
     description:
465 468
       name: pubspec_parse
466
-      url: "https://pub.flutter-io.cn"
469
+      url: "https://pub.dartlang.org"
467 470
     source: hosted
468 471
     version: "1.2.0"
469 472
   sky_engine:
@@ -475,107 +478,107 @@ packages:
475 478
     dependency: transitive
476 479
     description:
477 480
       name: source_gen
478
-      url: "https://pub.flutter-io.cn"
481
+      url: "https://pub.dartlang.org"
479 482
     source: hosted
480 483
     version: "1.2.2"
481 484
   source_helper:
482 485
     dependency: transitive
483 486
     description:
484 487
       name: source_helper
485
-      url: "https://pub.flutter-io.cn"
488
+      url: "https://pub.dartlang.org"
486 489
     source: hosted
487 490
     version: "1.3.2"
488 491
   source_span:
489 492
     dependency: transitive
490 493
     description:
491 494
       name: source_span
492
-      url: "https://pub.flutter-io.cn"
495
+      url: "https://pub.dartlang.org"
493 496
     source: hosted
494 497
     version: "1.8.1"
495 498
   stack_trace:
496 499
     dependency: transitive
497 500
     description:
498 501
       name: stack_trace
499
-      url: "https://pub.flutter-io.cn"
502
+      url: "https://pub.dartlang.org"
500 503
     source: hosted
501 504
     version: "1.10.0"
502 505
   stream_channel:
503 506
     dependency: transitive
504 507
     description:
505 508
       name: stream_channel
506
-      url: "https://pub.flutter-io.cn"
509
+      url: "https://pub.dartlang.org"
507 510
     source: hosted
508 511
     version: "2.1.0"
509 512
   stream_transform:
510 513
     dependency: transitive
511 514
     description:
512 515
       name: stream_transform
513
-      url: "https://pub.flutter-io.cn"
516
+      url: "https://pub.dartlang.org"
514 517
     source: hosted
515 518
     version: "2.0.0"
516 519
   string_scanner:
517 520
     dependency: transitive
518 521
     description:
519 522
       name: string_scanner
520
-      url: "https://pub.flutter-io.cn"
523
+      url: "https://pub.dartlang.org"
521 524
     source: hosted
522 525
     version: "1.1.0"
523 526
   term_glyph:
524 527
     dependency: transitive
525 528
     description:
526 529
       name: term_glyph
527
-      url: "https://pub.flutter-io.cn"
530
+      url: "https://pub.dartlang.org"
528 531
     source: hosted
529 532
     version: "1.2.0"
530 533
   test_api:
531 534
     dependency: transitive
532 535
     description:
533 536
       name: test_api
534
-      url: "https://pub.flutter-io.cn"
537
+      url: "https://pub.dartlang.org"
535 538
     source: hosted
536 539
     version: "0.4.8"
537 540
   typed_data:
538 541
     dependency: transitive
539 542
     description:
540 543
       name: typed_data
541
-      url: "https://pub.flutter-io.cn"
544
+      url: "https://pub.dartlang.org"
542 545
     source: hosted
543 546
     version: "1.3.0"
544 547
   vector_math:
545 548
     dependency: transitive
546 549
     description:
547 550
       name: vector_math
548
-      url: "https://pub.flutter-io.cn"
551
+      url: "https://pub.dartlang.org"
549 552
     source: hosted
550 553
     version: "2.1.1"
551 554
   watcher:
552 555
     dependency: transitive
553 556
     description:
554 557
       name: watcher
555
-      url: "https://pub.flutter-io.cn"
558
+      url: "https://pub.dartlang.org"
556 559
     source: hosted
557 560
     version: "1.0.1"
558 561
   win32:
559 562
     dependency: transitive
560 563
     description:
561 564
       name: win32
562
-      url: "https://pub.flutter-io.cn"
565
+      url: "https://pub.dartlang.org"
563 566
     source: hosted
564 567
     version: "2.5.2"
565 568
   xdg_directories:
566 569
     dependency: transitive
567 570
     description:
568 571
       name: xdg_directories
569
-      url: "https://pub.flutter-io.cn"
572
+      url: "https://pub.dartlang.org"
570 573
     source: hosted
571 574
     version: "0.2.0+1"
572 575
   yaml:
573 576
     dependency: transitive
574 577
     description:
575 578
       name: yaml
576
-      url: "https://pub.flutter-io.cn"
579
+      url: "https://pub.dartlang.org"
577 580
     source: hosted
578
-    version: "3.1.0"
581
+    version: "3.1.1"
579 582
 sdks:
580 583
   dart: ">=2.16.1 <3.0.0"
581 584
   flutter: ">=2.8.1"

+ 1
- 0
pubspec.yaml Vedi File

@@ -51,6 +51,7 @@ dependencies:
51 51
   permission_handler: ^9.2.0
52 52
   ff_stars: ^1.0.0
53 53
   flutter_easyloading: ^3.0.3
54
+  flutter_easyrefresh: ^2.2.1 #下拉刷新上拉加载
54 55
 
55 56
 #  flutter_bmflocation: ^3.1.0+1
56 57