Parcourir la source

add ListesyeRefresh

[baozhangchao] il y a 3 ans
Parent
révision
49f77c6652

+ 1
- 1
lib/main.dart Voir le fichier

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

+ 1
- 1
lib/pages/login/login.dart Voir le fichier

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

+ 111
- 4
lib/pages/order/index.dart Voir le fichier

1
+import 'package:farmer_client/pages/order/widgets/index.dart';
1
 import 'package:farmer_client/widgets/layout/BasicPage.dart';
2
 import 'package:farmer_client/widgets/layout/BasicPage.dart';
2
 import 'package:flutter/material.dart';
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
     tabIndex = 1;
19
     tabIndex = 1;
8
     naviTitle = '订单';
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
   @override
73
   @override
12
   Widget builder(BuildContext context) {
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 Voir le fichier

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 Voir le fichier

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 Voir le fichier

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

+ 2
- 2
lib/services/orderAPI.dart Voir le fichier

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

+ 98
- 95
pubspec.lock Voir le fichier

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

+ 1
- 0
pubspec.yaml Voir le fichier

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