[baozhangchao] 3 lat temu
rodzic
commit
6793a0ef26

+ 9
- 18
lib/main.dart Wyświetl plik

3
 import 'package:farmer_client/models/Store.dart';
3
 import 'package:farmer_client/models/Store.dart';
4
 import 'package:farmer_client/pages/home.dart';
4
 import 'package:farmer_client/pages/home.dart';
5
 import 'package:farmer_client/pages/login/login.dart';
5
 import 'package:farmer_client/pages/login/login.dart';
6
+import 'package:farmer_client/widgets/CarsCard.dart';
7
+import 'package:farmer_client/widgets/OrderInfoCard.dart';
6
 import 'package:flutter/material.dart';
8
 import 'package:flutter/material.dart';
7
 import 'package:get/get.dart';
9
 import 'package:get/get.dart';
8
 import 'package:get_storage/get_storage.dart';
10
 import 'package:get_storage/get_storage.dart';
35
           initialRoute: '/home',
37
           initialRoute: '/home',
36
           defaultTransition: Transition.native,
38
           defaultTransition: Transition.native,
37
           getPages: [
39
           getPages: [
40
+            // GetPage(name: '/home', page: () => OrderPage() ),
38
             GetPage(name: '/home', page: () => box.hasData('token') ? Home() : MyRouteLogin()),
41
             GetPage(name: '/home', page: () => box.hasData('token') ? Home() : MyRouteLogin()),
39
           ],
42
           ],
40
         );
43
         );
62
 }
65
 }
63
 
66
 
64
 class MyHomePage extends StatefulWidget {
67
 class MyHomePage extends StatefulWidget {
65
-  const MyHomePage({Key? key, required this.title}) : super(key: key);
68
+  const MyHomePage({Key? key,}) : super(key: key);
66
 
69
 
67
   // This widget is the home page of your application. It is stateful, meaning
70
   // This widget is the home page of your application. It is stateful, meaning
68
   // that it has a State object (defined below) that contains fields that affect
71
   // that it has a State object (defined below) that contains fields that affect
73
   // used by the build method of the State. Fields in a Widget subclass are
76
   // used by the build method of the State. Fields in a Widget subclass are
74
   // always marked "final".
77
   // always marked "final".
75
 
78
 
76
-  final String title;
79
+  // final String title;
77
 
80
 
78
   @override
81
   @override
79
   State<MyHomePage> createState() => _MyHomePageState();
82
   State<MyHomePage> createState() => _MyHomePageState();
85
 
88
 
86
   @override
89
   @override
87
   Widget build(BuildContext context) {
90
   Widget build(BuildContext context) {
88
-
89
-    ScreenUtil.init(context,
90
-        deviceSize: Size(
91
-            MediaQuery.of(context).size.width,
92
-            MediaQuery.of(context).size.height),
93
-        designSize: const Size(375, 812),
94
-        minTextAdapt: true,
95
-        orientation: Orientation.portrait);
96
     // var find = Get.find(tag: 'user');
91
     // var find = Get.find(tag: 'user');
97
 
92
 
98
     // This method is rerun every time setState is called, for instance as done
93
     // This method is rerun every time setState is called, for instance as done
106
         backgroundColor: Colors.amber,
101
         backgroundColor: Colors.amber,
107
         // Here we take the value from the MyHomePage object that was created by
102
         // Here we take the value from the MyHomePage object that was created by
108
         // the App.build method, and use it to set our appbar title.
103
         // the App.build method, and use it to set our appbar title.
109
-        title: Text(widget.title),
104
+        title: Text('widget.title'),
110
       ),
105
       ),
111
       body: Center(
106
       body: Center(
112
         // Center is a layout widget. It takes a single child and positions it
107
         // Center is a layout widget. It takes a single child and positions it
127
           // axis because Columns are vertical (the cross axis would be
122
           // axis because Columns are vertical (the cross axis would be
128
           // horizontal).
123
           // horizontal).
129
           mainAxisAlignment: MainAxisAlignment.center,
124
           mainAxisAlignment: MainAxisAlignment.center,
130
-          children: const <Widget>[
125
+          children:  <Widget>[
131
 
126
 
132
             // Text(
127
             // Text(
133
             //   '$_counter',
128
             //   '$_counter',
150
             //     );
145
             //     );
151
             //   },
146
             //   },
152
             // ),
147
             // ),
153
-            // CarsCard(item: CarItem(
154
-            //     name:'元神第二个收割机',
155
-            //   distance:8.8,
156
-            //   price:270.6,
157
-            // )),
148
+            CarsCard(),
158
             // Search()
149
             // Search()
159
-            OrderListCard()
150
+            // OrderListCard()
160
           ],
151
           ],
161
         ),
152
         ),
162
       ),
153
       ),

+ 9
- 7
lib/pages/login/login.dart Wyświetl plik

86
           getSMSCaptch(handlePhones);
86
           getSMSCaptch(handlePhones);
87
         } else {
87
         } else {
88
           Fluttertoast.showToast(msg: '请正确输入手机号!');
88
           Fluttertoast.showToast(msg: '请正确输入手机号!');
89
+
89
         }
90
         }
90
 
91
 
91
         print('获取验证码按钮222222');
92
         print('获取验证码按钮222222');
95
 
96
 
96
   @override
97
   @override
97
   Widget build(BuildContext context) {
98
   Widget build(BuildContext context) {
98
-    return Container(
99
-      width: 250,
100
-      height: 250,
99
+    return Scaffold(
100
+      backgroundColor: Colors.transparent,
101
+      resizeToAvoidBottomInset: false,
102
+      body: Container(
101
       decoration: const BoxDecoration(
103
       decoration: const BoxDecoration(
102
         image: DecorationImage(
104
         image: DecorationImage(
103
           image: AssetImage("images/icon_login.png"),
105
           image: AssetImage("images/icon_login.png"),
105
         ),
107
         ),
106
       ),
108
       ),
107
 
109
 
108
-      child: Scaffold(
109
-        backgroundColor: Colors.transparent, //把scaffold的背景色改成透明
110
-        body: Center(
110
+      child:  Container(
111
           child: Column(
111
           child: Column(
112
             mainAxisAlignment: MainAxisAlignment.end,
112
             mainAxisAlignment: MainAxisAlignment.end,
113
             crossAxisAlignment: CrossAxisAlignment.start,
113
             crossAxisAlignment: CrossAxisAlignment.start,
242
                       }else{
242
                       }else{
243
                         if(_newValue){
243
                         if(_newValue){
244
                           print('已同意协议');
244
                           print('已同意协议');
245
+                          userLogin(handlePhones,handleCodes);
245
                         }else{
246
                         }else{
246
                           Fluttertoast.showToast(msg: '请阅读并同意相关隐私政策!');
247
                           Fluttertoast.showToast(msg: '请阅读并同意相关隐私政策!');
247
                         }
248
                         }
255
                           fontWeight: FontWeight.bold),
256
                           fontWeight: FontWeight.bold),
256
                     ),
257
                     ),
257
                     style: ButtonStyle(
258
                     style: ButtonStyle(
259
+                      elevation: MaterialStateProperty.all(0),
258
                       backgroundColor:
260
                       backgroundColor:
259
                           MaterialStateProperty.all(const Color(0xFFFF703B)),
261
                           MaterialStateProperty.all(const Color(0xFFFF703B)),
260
                       shape: MaterialStateProperty.all(
262
                       shape: MaterialStateProperty.all(
266
                 ),
268
                 ),
267
               ),
269
               ),
268
 
270
 
269
-              Padding(
271
+              Container(
270
                   padding: EdgeInsets.fromLTRB(10.0, 10, 10.0, 10),
272
                   padding: EdgeInsets.fromLTRB(10.0, 10, 10.0, 10),
271
                   child: Row(
273
                   child: Row(
272
                     children: <Widget>[
274
                     children: <Widget>[

+ 9
- 2
lib/services/user.dart Wyświetl plik

6
 
6
 
7
 
7
 
8
 Future getSMSCaptch(String phone) async {
8
 Future getSMSCaptch(String phone) async {
9
-  return request('/sms-captcha', options: Options(method: 'POST'), queryParameters: { 'phone': phone })
10
-      .then((value) {
9
+  return request('/sms-captcha', options: Options(method: 'POST'), queryParameters: { 'phone': phone }).then((value) {
11
     Fluttertoast.showToast(
10
     Fluttertoast.showToast(
12
         msg: '验证码发送成功!'
11
         msg: '验证码发送成功!'
13
     );
12
     );
18
     );
17
     );
19
   });
18
   });
20
 }
19
 }
20
+
21
+
22
+//登陆
23
+Future userLogin(String userName,String password) async {
24
+  return request('/login', options: Options(method: 'POST'), data: { 'userName': userName,'password':password }, ).catchError((error)=>{ Fluttertoast.showToast(
25
+  msg: error.error['message']
26
+  ),});
27
+}

+ 1
- 1
lib/utils/Request.dart Wyświetl plik

52
       try {
52
       try {
53
         var data = response.data as Map<String, dynamic>;
53
         var data = response.data as Map<String, dynamic>;
54
         if (null != data['token']) {
54
         if (null != data['token']) {
55
-          GetStorage().write('token', data['token']);
55
+          GetStorage().write('token', data['token']); //取数据
56
         }
56
         }
57
       } catch (e) {
57
       } catch (e) {
58
         //
58
         //

+ 14
- 20
lib/widgets/CarsCard.dart Wyświetl plik

2
 import 'package:flutter/material.dart';
2
 import 'package:flutter/material.dart';
3
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
 import 'package:flutter_screenutil/flutter_screenutil.dart';
4
 
4
 
5
-
6
-class CarItem {
7
-  late String name ;
8
-  late num? price ;
9
-  late num? distance ;
10
-
11
-
12
-  CarItem({ required this.name,this.price,this.distance});
13
-
14
-
15
-}
16
-
5
+// class CarItem {
6
+//   late String name;
7
+//   late num? price;
8
+//   late num? distance;
9
+//   CarItem({required this.name, this.price, this.distance});
10
+// }
17
 
11
 
18
 class CarsCard extends StatelessWidget {
12
 class CarsCard extends StatelessWidget {
19
-  final CarItem item;
20
-
13
+  // final CarItem item;
21
 
14
 
22
-  const CarsCard({Key? key, required this.item,}) : super(key: key);
15
+  // const CarsCard({
16
+  //   Key? key,
17
+  //   required this.item,
18
+  // }) : super(key: key);
23
 
19
 
24
   @override
20
   @override
25
   Widget build(BuildContext context) {
21
   Widget build(BuildContext context) {
26
-
27
-
28
     return Container(
22
     return Container(
29
       decoration: BoxDecoration(
23
       decoration: BoxDecoration(
30
         color: Color(0xfff2f2f2),
24
         color: Color(0xfff2f2f2),
46
               verticalDirection: VerticalDirection.up,
40
               verticalDirection: VerticalDirection.up,
47
               children: <Widget>[
41
               children: <Widget>[
48
                 Container(
42
                 Container(
49
-                  child:  Text(
50
-                    item.name,
43
+                  child: Text(
44
+                    '联合收割机GB01235-0B',
51
                     style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
45
                     style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
52
                   ),
46
                   ),
53
                 ),
47
                 ),
89
                     height: 44.h, //+10
83
                     height: 44.h, //+10
90
                     child: ElevatedButton(
84
                     child: ElevatedButton(
91
                       onPressed: () {
85
                       onPressed: () {
92
-                        print('点我去预约${item.name}');
86
+                        print('点我去预约');
93
                       },
87
                       },
94
                       child: const Text(
88
                       child: const Text(
95
                         "预约",
89
                         "预约",

+ 57
- 0
lib/widgets/OrderInfoCard.dart Wyświetl plik

1
+import 'package:flutter/material.dart';
2
+
3
+
4
+
5
+
6
+
7
+class OrderPage extends StatefulWidget {
8
+  const OrderPage({Key? key}) : super(key: key);
9
+
10
+  @override
11
+  State<OrderPage> createState() => _OrderPageState();
12
+}
13
+
14
+class _OrderPageState extends State<OrderPage> {
15
+  @override
16
+  Widget build(BuildContext context) {
17
+    return Scaffold(
18
+        resizeToAvoidBottomInset: false,
19
+      appBar:  AppBar(
20
+          title:  Text('订单'),
21
+          leading:  Icon(Icons.arrow_back_ios),
22
+          backgroundColor: Color(0xff2b9270),
23
+        // backgroundColor: Colors.transparent,
24
+        centerTitle: true,
25
+
26
+      ),
27
+        body:      Column(
28
+          children: [
29
+            OrderInfoCard()
30
+          ],
31
+        ),
32
+    );
33
+
34
+  }
35
+}
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+class OrderInfoCard extends StatelessWidget {
44
+  const OrderInfoCard({Key? key}) : super(key: key);
45
+
46
+  @override
47
+  Widget build(BuildContext context) {
48
+    return Container(
49
+          height: 100,
50
+          child: Text('55555555555555'),
51
+
52
+        );
53
+
54
+
55
+
56
+  }
57
+}

+ 64
- 64
pubspec.lock Wyświetl plik

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

+ 1
- 0
pubspec.yaml Wyświetl plik

39
   dio: ^4.0.6
39
   dio: ^4.0.6
40
   flutter_screenutil: ^5.3.1
40
   flutter_screenutil: ^5.3.1
41
   get_storage: ^2.0.3
41
   get_storage: ^2.0.3
42
+  fluttertoast: ^8.0.9
42
 
43
 
43
 dev_dependencies:
44
 dev_dependencies:
44
   flutter_test:
45
   flutter_test: