Browse Source

Merge branch 'master' of http://git.ycjcjy.com/nanyang/farmer_client

张延森 3 years ago
parent
commit
df53cfeaef

BIN
images/icons/carsListImga.png View File


+ 0
- 89
lib/components/UI/DefaultButton.dart View File

1
-import 'package:flutter/material.dart';
2
-
3
-
4
-
5
-class DefaultButton extends StatefulWidget {
6
-  //点击回调
7
-  final GestureTapCallback onPressed;
8
-  final String text;
9
-  final EdgeInsetsGeometry margin;
10
-  final double width;
11
-  final double height;
12
-  final double? fontSize;
13
-  final Color backColor;
14
-  final Color color;
15
-
16
-  EdgeInsetsGeometry marginDefault =
17
-  const EdgeInsets.fromLTRB(0, 90.0, 0, 30); //按钮默认的margin值
18
-
19
-  DefaultButton({
20
-    Key? key,
21
-    required this.onPressed,
22
-    required this.text,
23
-    required this.margin,
24
-    required this.width,
25
-    required this.height,
26
-    this.fontSize,
27
-    required this.backColor,
28
-    required this.color,
29
-  }) : super(key: key);
30
-
31
-  @override
32
-  State createState() {
33
-    if (margin == null) {
34
-      return _DefaultButtonState(onPressed, text, marginDefault,width,height,fontSize,backColor,color);
35
-    }
36
-    return _DefaultButtonState(onPressed, text, margin,width,height,fontSize,backColor,color);
37
-  }
38
-}
39
-
40
-class _DefaultButtonState extends State<DefaultButton> {
41
-  //点击回调
42
-  final GestureTapCallback onPressed;
43
-  final String text;
44
-  final EdgeInsetsGeometry margin;
45
-  final double width;
46
-  final double height;
47
-  final double? fontSize;
48
-  final Color backColor;
49
-  final Color color;
50
-  _DefaultButtonState(
51
-      this.onPressed,
52
-      this.text,
53
-      this.margin,
54
-      this.width,
55
-      this.height,
56
-      this.fontSize,
57
-      this.backColor,
58
-      this.color
59
-      );
60
-
61
-  @override
62
-  Widget build(BuildContext context) {
63
-    Widget _SectionBtn = Container(
64
-      margin: margin,
65
-      child: SizedBox(
66
-        width: width,
67
-        height: height,
68
-        child: RaisedButton(
69
-          color: backColor,
70
-          disabledColor: const Color(0xF5F6F7ff),
71
-          disabledTextColor: const Color(0xF5F6F7ff),
72
-          colorBrightness: Brightness.dark,
73
-          shape:
74
-          RoundedRectangleBorder(borderRadius: BorderRadius.circular(5.0)),
75
-          child: Text(text,style:  TextStyle(
76
-              fontSize: fontSize,
77
-              color: color,
78
-          ),),
79
-          textColor: Colors.white,
80
-          onPressed: onPressed,
81
-        ),
82
-      ),
83
-    );
84
-
85
-    return _SectionBtn;
86
-  }
87
-
88
-}
89
-

+ 0
- 9
lib/main.dart View File

1
-
2
 import 'package:farmer_client/theme.dart';
1
 import 'package:farmer_client/theme.dart';
3
 import 'package:flutter/material.dart';
2
 import 'package:flutter/material.dart';
4
 import 'package:get/get.dart';
3
 import 'package:get/get.dart';
13
 void main() async {
12
 void main() async {
14
   await GetStorage.init();
13
   await GetStorage.init();
15
 
14
 
16
-
17
   runApp(const MyApp());
15
   runApp(const MyApp());
18
 }
16
 }
19
 
17
 
20
 class MyApp extends StatelessWidget {
18
 class MyApp extends StatelessWidget {
21
   const MyApp({Key? key}) : super(key: key);
19
   const MyApp({Key? key}) : super(key: key);
22
 
20
 
23
-
24
-
25
   // This widget is the root of your application.
21
   // This widget is the root of your application.
26
   @override
22
   @override
27
   Widget build(BuildContext context) {
23
   Widget build(BuildContext context) {
28
-
29
-    GetStorage box = GetStorage();
30
-
31
     return ScreenUtilInit(
24
     return ScreenUtilInit(
32
       designSize: const Size(375, 812),
25
       designSize: const Size(375, 812),
33
       minTextAdapt: true,
26
       minTextAdapt: true,
43
             Locale('zh', ''),
36
             Locale('zh', ''),
44
             Locale('en', ''),
37
             Locale('en', ''),
45
           ],
38
           ],
46
-
47
           theme: getTheme(),
39
           theme: getTheme(),
48
           initialRoute: '/splash',
40
           initialRoute: '/splash',
49
           defaultTransition: Transition.native,
41
           defaultTransition: Transition.native,
50
           routingCallback: routingCallback,
42
           routingCallback: routingCallback,
51
           initialBinding: AppBindings(),
43
           initialBinding: AppBindings(),
52
           getPages: pages,
44
           getPages: pages,
53
-
54
         );
45
         );
55
       },
46
       },
56
     );
47
     );

+ 13
- 6
lib/pages/ArticleInfo/ArticleInfo.dart View File

7
   @override
7
   @override
8
   Widget build(BuildContext context) {
8
   Widget build(BuildContext context) {
9
     return Scaffold(
9
     return Scaffold(
10
-        resizeToAvoidBottomInset: false,
11
-        appBar: AppBar(
12
-          title: Text('资讯'),
13
-          leading: Icon(Icons.arrow_back_ios),
14
-          // backgroundColor: Colors.transparent,
15
-          centerTitle: true,
10
+      resizeToAvoidBottomInset: false,
11
+      appBar: AppBar(
12
+        elevation: 0,
13
+        centerTitle: true,
14
+        backgroundColor: Colors.white,
15
+        title: Text(
16
+          '资讯详情',
17
+          style: TextStyle(
18
+              color: Colors.black,
19
+              fontSize: 17.sp,
20
+              letterSpacing: 2,
21
+              fontWeight: FontWeight.bold),
16
         ),
22
         ),
23
+      ),
17
         body: Container(
24
         body: Container(
18
           padding: EdgeInsets.fromLTRB(15, 30, 15, 50),
25
           padding: EdgeInsets.fromLTRB(15, 30, 15, 50),
19
 
26
 

+ 36
- 0
lib/pages/MoreCars/index.dart View File

1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+
4
+
5
+class MoreCars extends StatefulWidget {
6
+  const MoreCars({Key? key}) : super(key: key);
7
+
8
+  @override
9
+  State<MoreCars> createState() => _MoreCarsState();
10
+}
11
+
12
+class _MoreCarsState extends State<MoreCars> {
13
+  @override
14
+  Widget build(BuildContext context) {
15
+    return Scaffold(
16
+      resizeToAvoidBottomInset: false,
17
+      appBar: AppBar(
18
+        elevation: 0,
19
+        centerTitle: true,
20
+        backgroundColor: Colors.white,
21
+        title: Text(
22
+          '更多',
23
+          style: TextStyle(
24
+              color: Colors.black,
25
+              fontSize: 17.sp,
26
+              letterSpacing: 2,
27
+              fontWeight: FontWeight.bold),
28
+        ),
29
+      ),
30
+      body: Container(
31
+        child: Text('wwwwwwwwwww'),
32
+      ),
33
+
34
+    );
35
+  }
36
+}

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

1
-import 'package:farmer_client/pages/OrderConfirmation/widgets/timeDatePicker.dart';
2
 import 'package:flutter/cupertino.dart';
1
 import 'package:flutter/cupertino.dart';
3
 import 'package:flutter/material.dart';
2
 import 'package:flutter/material.dart';
4
 import 'package:flutter/services.dart';
3
 import 'package:flutter/services.dart';

+ 0
- 0
lib/pages/OrderConfirmation/widgets/timeDatePicker.dart View File


+ 4
- 2
lib/pages/TabBar/index.dart View File

5
 import '../TabBar/widgets/Information/index.dart';
5
 import '../TabBar/widgets/Information/index.dart';
6
 import '../TabBar/widgets/main/index.dart';
6
 import '../TabBar/widgets/main/index.dart';
7
 import '../TabBar/widgets/order/index.dart';
7
 import '../TabBar/widgets/order/index.dart';
8
-// import 'package:farmer_client/pages/TabBar/widgets/orderInfo/index.dart';
8
+import '../TabBar/widgets/home/index.dart';
9
+
9
 class Home extends StatefulWidget {
10
 class Home extends StatefulWidget {
10
   const Home({Key? key}) : super(key: key);
11
   const Home({Key? key}) : super(key: key);
11
 
12
 
67
   }
68
   }
68
 
69
 
69
   //内容
70
   //内容
70
-  var _body = [Text('我是首页'), OrderPage(),Information(), MainPage()];
71
+  var _body = [HomePage(), OrderPage(),Information(), MainPage()];
71
 
72
 
72
   Widget tabBar(index) {
73
   Widget tabBar(index) {
73
     return GestureDetector(
74
     return GestureDetector(
96
   @override
97
   @override
97
   Widget build(BuildContext context) {
98
   Widget build(BuildContext context) {
98
     return Scaffold(
99
     return Scaffold(
100
+      backgroundColor: Colors.white,
99
       appBar: AppBar(
101
       appBar: AppBar(
100
         elevation: 0,
102
         elevation: 0,
101
         centerTitle: true,
103
         centerTitle: true,

+ 3
- 1
lib/pages/TabBar/widgets/Information/index.dart View File

3
 import 'package:get/get.dart';
3
 import 'package:get/get.dart';
4
 import 'package:get/get_core/src/get_main.dart';
4
 import 'package:get/get_core/src/get_main.dart';
5
 
5
 
6
+import '../../../ArticleInfo/ArticleInfo.dart';
7
+
6
 class Information extends StatefulWidget {
8
 class Information extends StatefulWidget {
7
   const Information({Key? key}) : super(key: key);
9
   const Information({Key? key}) : super(key: key);
8
 
10
 
64
                 ],
66
                 ],
65
               )),
67
               )),
66
           onTap: () {
68
           onTap: () {
67
-            Get.toNamed('/ArticleInfo');
69
+            Get.to(ArticleInfo());
68
           },
70
           },
69
         ),
71
         ),
70
         GestureDetector(
72
         GestureDetector(

+ 110
- 0
lib/pages/TabBar/widgets/home/index.dart View File

1
+import 'package:carousel_slider/carousel_slider.dart';
2
+import 'package:farmer_client/pages/TabBar/widgets/home/widgets/headers.dart';
3
+import 'package:flutter/material.dart';
4
+import 'package:flutter_screenutil/flutter_screenutil.dart';
5
+import 'package:get/get.dart';
6
+import 'package:get/get_core/src/get_main.dart';
7
+import '../../../../widgets/CarsCard.dart';
8
+import '../../../../widgets/Search.dart';
9
+import '../../../MoreCars/index.dart';
10
+
11
+
12
+class HomePage extends StatefulWidget {
13
+  const HomePage({Key? key}) : super(key: key);
14
+
15
+  @override
16
+  State<HomePage> createState() => _HomePageState();
17
+}
18
+
19
+class _HomePageState extends State<HomePage> {
20
+  final CarouselController _controller = CarouselController();
21
+  final List<String> imgList = [
22
+    'https://images.unsplash.com/photo-1520342868574-5fa3804e551c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=6ff92caffcdd63681a35134a6770ed3b&auto=format&fit=crop&w=1951&q=80',
23
+    'https://images.unsplash.com/photo-1522205408450-add114ad53fe?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=368f45b0888aeb0b7b08e3a1084d3ede&auto=format&fit=crop&w=1950&q=80',
24
+    'https://images.unsplash.com/photo-1519125323398-675f0ddb6308?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=94a1e718d89ca60a6337a6008341ca50&auto=format&fit=crop&w=1950&q=80',
25
+    'https://images.unsplash.com/photo-1523205771623-e0faa4d2813d?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=89719a0d55dd05e2deae4120227e6efc&auto=format&fit=crop&w=1953&q=80',
26
+    'https://images.unsplash.com/photo-1508704019882-f9cf40e475b4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=8c6e5e3aba713b17aa1fe71ab4f0ae5b&auto=format&fit=crop&w=1352&q=80',
27
+    'https://images.unsplash.com/photo-1519985176271-adb1088fa94c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=a0c8d632e977f94e5d312d9893258f59&auto=format&fit=crop&w=1355&q=80'
28
+  ];
29
+
30
+  @override
31
+  Widget build(BuildContext context) {
32
+    return Container(
33
+      alignment: Alignment.center,
34
+      padding: EdgeInsets.fromLTRB(15.w, 0, 15.w, 0),
35
+      child: ListView(
36
+        children: [
37
+          headers(),
38
+          Container(
39
+            margin: EdgeInsets.fromLTRB(0, 15, 0, 0),
40
+            child: CarouselSlider(
41
+              //API  https://pub.dev/documentation/carousel_slider/latest/carousel_options/CarouselOptions-class.html
42
+              items:imgList
43
+                  .map((item) => Container(
44
+                child: Center(
45
+                    child:
46
+                    Image.network(item, fit: BoxFit.cover, width: 350.w)),
47
+              ))
48
+                  .toList(),
49
+              options: CarouselOptions(
50
+                autoPlay: true,
51
+                enlargeCenterPage: false,//图片中心放大
52
+                viewportFraction: 1,//每个页面应占据的视口部分。默认为 0.8,这意味着每个页面填充 80% 的轮播。
53
+                // aspectRatio: 1.6,//纵横比
54
+                height: 214.w,
55
+                initialPage: 1,//初始页
56
+              ),
57
+            ),
58
+          ),
59
+          
60
+
61
+          Container(
62
+            margin: EdgeInsets.fromLTRB(0, 20, 0, 20),
63
+            child: Column(
64
+              children: [
65
+                Row(
66
+                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
67
+                  children: [
68
+                    Container(
69
+                      child: Row(
70
+                        children: [
71
+                          Padding(padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
72
+                            child:Image(image: AssetImage('images/icons/carsListImga.png'),fit: BoxFit.cover,width: 20.w,),
73
+                          ),
74
+                          Text('农机列表',
75
+                            style: TextStyle(
76
+                                color: Color(0xff222222),
77
+                                fontSize: 20.sp,
78
+                                fontWeight: FontWeight.bold
79
+                            ),
80
+                          )
81
+                        ],
82
+                      ),
83
+                    ),
84
+                    Container(
85
+                      child:GestureDetector(
86
+                        child:  Text('更多 >>'),
87
+                        onTap: (){
88
+                          print('点我进入农机搜索/更多页');
89
+                          Get.to(MoreCars());
90
+                        },
91
+                      ),
92
+                    )
93
+
94
+                  ],
95
+                ),
96
+                CarsCard(),
97
+                CarsCard(),
98
+                CarsCard(),
99
+              ],
100
+            )
101
+
102
+          ),
103
+
104
+        ],
105
+      ),
106
+
107
+
108
+    );
109
+  }
110
+}

+ 73
- 0
lib/pages/TabBar/widgets/home/widgets/headers.dart View File

1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+
4
+
5
+class headers extends StatelessWidget {
6
+  const headers({Key? key}) : super(key: key);
7
+
8
+  @override
9
+  Widget build(BuildContext context) {
10
+    return Container(
11
+      child:           Row(
12
+        children: [
13
+          Container(
14
+            height: 32.w,
15
+            decoration: BoxDecoration(
16
+                color: Colors.white
17
+            ),
18
+            child: Row(
19
+              children: [
20
+                Image(
21
+                  image: AssetImage('images/gpsImgae.png'),
22
+                  fit: BoxFit.cover,
23
+                  width: 14.w,
24
+                  height: 17.h,
25
+                ),
26
+                Padding(padding: EdgeInsets.fromLTRB(5, 0, 0, 0),
27
+                  child: Text('邓州市',
28
+                    style: TextStyle(
29
+                      color: Color(0xff202020),
30
+                      fontSize: 16.sp,
31
+                      fontWeight: FontWeight.bold,
32
+                    ),
33
+                  ),
34
+                ),
35
+                const Icon(Icons.arrow_drop_down)
36
+              ],
37
+
38
+            ),
39
+          ),
40
+          Container(
41
+              padding: EdgeInsets.fromLTRB(15.w, 0, 0, 0),
42
+              width: 260.w,
43
+              height: 32.w,
44
+              decoration: const BoxDecoration(
45
+                  color: Colors.white
46
+              ),
47
+              child: GestureDetector(
48
+                  onTap: (){
49
+                    print('点击了搜索');
50
+                  },
51
+                  child: Container(
52
+                    decoration: const BoxDecoration(
53
+                      // color: Colors.red,
54
+                      color: Color(0x30cccccc),
55
+                      borderRadius: BorderRadius.all(Radius.circular(25)),
56
+                    ),
57
+                    child: Row(
58
+                      children: [
59
+                        Padding(padding: EdgeInsets.fromLTRB(15, 0, 5, 0),
60
+                          child: Icon(Icons.search,size: 19,color:Color(0xff666666) ,),
61
+                        ),
62
+                        Text('请输入关键字查询',style: TextStyle(color: Color(0xff666666),fontSize: 14),)
63
+                      ],
64
+                    ),
65
+                  )
66
+                // Search(),
67
+              )
68
+          )
69
+        ],
70
+      ),
71
+    );
72
+  }
73
+}

+ 25
- 2
lib/pages/TabBar/widgets/main/index.dart View File

1
+import 'package:get/get.dart';
2
+import 'package:get_storage/get_storage.dart';
3
+
1
 import './widgets/OtherColumn.dart';
4
 import './widgets/OtherColumn.dart';
2
 import './widgets/UserAddress.dart';
5
 import './widgets/UserAddress.dart';
3
 import './widgets/UserInfo.dart';
6
 import './widgets/UserInfo.dart';
12
 }
15
 }
13
 
16
 
14
 class _MainPageState extends State<MainPage> {
17
 class _MainPageState extends State<MainPage> {
18
+  GetStorage box = GetStorage();
15
   @override
19
   @override
16
   Widget build(BuildContext context) {
20
   Widget build(BuildContext context) {
17
     return Container(
21
     return Container(
41
                   height: 49.h,
45
                   height: 49.h,
42
                   child: ElevatedButton(
46
                   child: ElevatedButton(
43
                     onPressed: () {
47
                     onPressed: () {
44
-                      // _handelSubmit();
45
-                      print('用户点击了支付啊阿松大撒地方');
48
+                      showDialog(
49
+                          context: context,
50
+                          builder: (context) {
51
+                            return AlertDialog(
52
+                                content: Text("您确定退出登录吗?"),
53
+                                actions: <Widget>[
54
+                                  TextButton(
55
+                                    child: Text("取消"),
56
+                                    onPressed: () {
57
+                                      Navigator.pop(context, 'Cancle');
58
+                                    },
59
+                                  ),
60
+                                  TextButton(
61
+                                      child: Text("确定"),
62
+                                      onPressed: () {
63
+                                        Navigator.pop(context, "Ok");
64
+                                        box.remove('token');
65
+                                        Get.offNamed('/login');
66
+                                      })
67
+                                ]);
68
+                          });
46
                     },
69
                     },
47
                     child: const Text(
70
                     child: const Text(
48
                       "退出登陆",
71
                       "退出登陆",

+ 71
- 70
lib/pages/TabBar/widgets/main/widgets/OtherColumn.dart View File

1
 import 'package:flutter/material.dart';
1
 import 'package:flutter/material.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+import 'package:get/get.dart';
3
 
4
 
4
 class OtherColumn extends StatelessWidget {
5
 class OtherColumn extends StatelessWidget {
5
   const OtherColumn({Key? key}) : super(key: key);
6
   const OtherColumn({Key? key}) : super(key: key);
6
 
7
 
7
   @override
8
   @override
8
   Widget build(BuildContext context) {
9
   Widget build(BuildContext context) {
9
-    return  Container(
10
+    return Container(
10
         alignment: Alignment.center,
11
         alignment: Alignment.center,
11
         width: 345.w,
12
         width: 345.w,
12
         margin: EdgeInsets.fromLTRB(0, 15.w, 0, 15.w),
13
         margin: EdgeInsets.fromLTRB(0, 15.w, 0, 15.w),
45
             Container(
46
             Container(
46
               child: Column(
47
               child: Column(
47
                 children: [
48
                 children: [
48
-                  Container(
49
-                    height: 45.w,
50
-                    width: 310.w,
51
-                    margin: EdgeInsets.fromLTRB(0, 10.w, 0, 0),
52
-
53
-                    decoration: const BoxDecoration(
54
-                        border:Border(
55
-                            bottom:
56
-                            BorderSide(width: 0.5, color: Color(0x20000000)
57
-                              // 0x17000000
58
-                            ))
59
-                    ),
60
-
61
-                    child: ListTile(
62
-                      contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
63
-                      // 这边使用了contentPadding
64
-                      leading: Image(
65
-                        image: AssetImage('images/aboutUs.png'),
66
-                        width: 18.w,
67
-                        height: 21.w,
68
-                      ),
69
-                      title: Transform(
70
-                        transform: Matrix4.translationValues(-20, 0.0, 0.0),
71
-                        child: Text("版本更新",
72
-                            style: TextStyle(
73
-                                fontSize: 17.sp, color: Color(0xff333333))),
74
-                      ),
75
-                      trailing: Image(
76
-                        image: AssetImage('images/userRight.png'),
77
-                        width: 10.w,
78
-                        height: 18.w,
49
+                  GestureDetector(
50
+                    onTap: () {
51
+                      Get.toNamed('/aboutUs');
52
+                    },
53
+                    child: Container(
54
+                      height: 45.w,
55
+                      width: 310.w,
56
+                      margin: EdgeInsets.fromLTRB(0, 10.w, 0, 0),
57
+                      decoration: const BoxDecoration(
58
+                          border: Border(
59
+                              bottom: BorderSide(
60
+                                  width: 0.5, color: Color(0x20000000)
61
+                                  // 0x17000000
62
+                                  ))),
63
+                      child: ListTile(
64
+                        contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
65
+                        // 这边使用了contentPadding
66
+                        leading: Image(
67
+                          image: AssetImage('images/aboutUs.png'),
68
+                          width: 18.w,
69
+                          height: 21.w,
70
+                        ),
71
+                        title: Transform(
72
+                          transform: Matrix4.translationValues(-20, 0.0, 0.0),
73
+                          child: Text("关于我们",
74
+                              style: TextStyle(
75
+                                  fontSize: 17.sp, color: Color(0xff333333))),
76
+                        ),
77
+                        trailing: Image(
78
+                          image: AssetImage('images/userRight.png'),
79
+                          width: 10.w,
80
+                          height: 18.w,
81
+                        ),
79
                       ),
82
                       ),
80
                     ),
83
                     ),
81
                   ),
84
                   ),
82
-                  Container(
83
-                    margin: EdgeInsets.fromLTRB(0, 10.w, 0, 0),
84
-                    width: 310.w,
85
-                    height: 45.w,
86
-                    decoration: const BoxDecoration(
87
-                        border:Border(
88
-                            bottom:
89
-                            BorderSide(width: 0.5, color: Color(0x20000000)
90
-                              // 0x17000000
91
-                            ))
92
-                    ),
93
-
94
-                    child: ListTile(
95
-                      contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
96
-
97
-                      leading: Image(
98
-                        image: AssetImage('images/versionUpdate.png'),
99
-                        width: 18.w,
100
-                        height: 21.w,
101
-                      ),
102
-                      title: Transform(
103
-                        transform: Matrix4.translationValues(-20, 0.0, 0.0),
104
-                        child: Text("用户协议及隐私政策",
105
-                            style: TextStyle(
106
-                                fontSize: 17.sp, color: Color(0xff333333))),
107
-                      ),
108
-                      trailing: Image(
109
-                        image: AssetImage('images/userRight.png'),
110
-                        width: 10.w,
111
-                        height: 18.w,
85
+                  GestureDetector(
86
+                    onTap: () {
87
+                      Get.toNamed('/agreement');
88
+                    },
89
+                    child: Container(
90
+                      margin: EdgeInsets.fromLTRB(0, 10.w, 0, 0),
91
+                      width: 310.w,
92
+                      height: 45.w,
93
+                      decoration: const BoxDecoration(
94
+                          border: Border(
95
+                              bottom: BorderSide(
96
+                                  width: 0.5, color: Color(0x20000000)
97
+                                  // 0x17000000
98
+                                  ))),
99
+                      child: ListTile(
100
+                        contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
101
+                        leading: Image(
102
+                          image: AssetImage('images/versionUpdate.png'),
103
+                          width: 18.w,
104
+                          height: 21.w,
105
+                        ),
106
+                        title: Transform(
107
+                          transform: Matrix4.translationValues(-20, 0.0, 0.0),
108
+                          child: Text("用户协议及隐私政策",
109
+                              style: TextStyle(
110
+                                  fontSize: 17.sp, color: Color(0xff333333))),
111
+                        ),
112
+                        trailing: Image(
113
+                          image: AssetImage('images/userRight.png'),
114
+                          width: 10.w,
115
+                          height: 18.w,
116
+                        ),
112
                       ),
117
                       ),
113
                     ),
118
                     ),
114
                   ),
119
                   ),
117
                     width: 310.w,
122
                     width: 310.w,
118
                     height: 45.w,
123
                     height: 45.w,
119
                     decoration: const BoxDecoration(
124
                     decoration: const BoxDecoration(
120
-                        border:Border(
125
+                        border: Border(
121
                             bottom:
126
                             bottom:
122
-                            BorderSide(width: 0.5, color: Color(0x20000000)
123
-                              // 0x17000000
124
-                            ))
125
-                    ),
126
-
127
+                                BorderSide(width: 0.5, color: Color(0x20000000)
128
+                                    // 0x17000000
129
+                                    ))),
127
                     child: ListTile(
130
                     child: ListTile(
128
                       contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
131
                       contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
129
-
130
                       leading: Image(
132
                       leading: Image(
131
                         image: AssetImage('images/feedbacks.png'),
133
                         image: AssetImage('images/feedbacks.png'),
132
                         width: 18.w,
134
                         width: 18.w,
145
                       ),
147
                       ),
146
                     ),
148
                     ),
147
                   ),
149
                   ),
148
-
149
                 ],
150
                 ],
150
               ),
151
               ),
151
             )
152
             )

+ 0
- 1
lib/pages/TabBar/widgets/order/index.dart View File

31
                   Padding(padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
31
                   Padding(padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
32
                   child:Image(image: AssetImage('images/ordersListImga.png'),fit: BoxFit.cover,width: 18.w,),
32
                   child:Image(image: AssetImage('images/ordersListImga.png'),fit: BoxFit.cover,width: 18.w,),
33
                   ),
33
                   ),
34
-
35
                   Text('订单列表',
34
                   Text('订单列表',
36
                     style: TextStyle(
35
                     style: TextStyle(
37
                       color: Color(0xff222222),
36
                       color: Color(0xff222222),

+ 102
- 0
lib/pages/aboutUs/index.dart View File

1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+
4
+class AboutUs extends StatelessWidget {
5
+  const AboutUs({Key? key}) : super(key: key);
6
+
7
+  @override
8
+  Widget build(BuildContext context) {
9
+    return Scaffold(
10
+      appBar: AppBar(
11
+        elevation: 0,
12
+        centerTitle: true,
13
+        backgroundColor: Colors.white,
14
+        title: Text(
15
+          '关于我们',
16
+          style: TextStyle(
17
+              color: Colors.black,
18
+              fontSize: 17.sp,
19
+              letterSpacing: 2,
20
+              fontWeight: FontWeight.bold),
21
+        ),
22
+      ),
23
+      body: Container(
24
+        color: const Color(0xFFFFFFFF),
25
+        padding: EdgeInsets.all(15.w),
26
+        child: Column(
27
+          children: [
28
+            Container(
29
+              margin: EdgeInsets.fromLTRB(0, 0, 0, 30.h),
30
+              child: Row(
31
+                mainAxisAlignment: MainAxisAlignment.center,
32
+                children: [
33
+                  Image(
34
+                      image: const AssetImage('images/icons/decorate.png'),
35
+                      width: 16.5.w),
36
+                  Text(
37
+                    '智慧农机的介绍',
38
+                    style: TextStyle(
39
+                        fontSize: 20.sp,
40
+                        fontWeight: FontWeight.bold,
41
+                        color: const Color(0xFF222222)),
42
+                  ),
43
+                  Image(
44
+                      image: const AssetImage('images/icons/decorate.png'),
45
+                      width: 16.5.w),
46
+                ],
47
+              ),
48
+            ),
49
+            Text(
50
+              '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
51
+              style: TextStyle(
52
+                  color: Color(0xFF121212),
53
+                  fontSize: 15.sp,
54
+                  letterSpacing: 2,
55
+                  height: 2),
56
+            ),
57
+            Text(
58
+              '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
59
+              style: TextStyle(
60
+                  color: Color(0xFF121212),
61
+                  fontSize: 15.sp,
62
+                  letterSpacing: 2,
63
+                  height: 2),
64
+            ),
65
+            Text(
66
+              '        物联网、植保、农机、畜牧、农资、农经,科教等各级农业业务应用及数据,形成大农业”数据中心。',
67
+              style: TextStyle(
68
+                  color: Color(0xFF121212),
69
+                  fontSize: 15.sp,
70
+                  letterSpacing: 2,
71
+                  height: 2),
72
+            ),
73
+            Text(
74
+              '        构建互联共享的“互联网+农业”信息服务体系以最终实现科学指导农业生产经营管理,政府决策监管和社会公众服务。',
75
+              style: TextStyle(
76
+                  color: Color(0xFF121212),
77
+                  fontSize: 15.sp,
78
+                  letterSpacing: 2,
79
+                  height: 2),
80
+            ),
81
+            Text(
82
+              '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
83
+              style: TextStyle(
84
+                  color: Color(0xFF121212),
85
+                  fontSize: 15.sp,
86
+                  letterSpacing: 2,
87
+                  height: 2),
88
+            ),
89
+            Text(
90
+              '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
91
+              style: TextStyle(
92
+                  color: Color(0xFF121212),
93
+                  fontSize: 15.sp,
94
+                  letterSpacing: 2,
95
+                  height: 2),
96
+            ),
97
+          ],
98
+        ),
99
+      ),
100
+    );
101
+  }
102
+}

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

36
         context: context,
36
         context: context,
37
         builder: (context) {
37
         builder: (context) {
38
           return AlertDialog(
38
           return AlertDialog(
39
-              title: Text("提示信息"),
40
               content: Text("您确定要删除此地址吗?"),
39
               content: Text("您确定要删除此地址吗?"),
41
               actions: <Widget>[
40
               actions: <Widget>[
42
                 TextButton(
41
                 TextButton(

+ 54
- 0
lib/pages/agreement/index.dart View File

1
+import 'package:flutter/material.dart';
2
+import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+
4
+class Agreement extends StatelessWidget {
5
+  const Agreement({Key? key}) : super(key: key);
6
+
7
+  @override
8
+  Widget build(BuildContext context) {
9
+    return Scaffold(
10
+      appBar: AppBar(
11
+        elevation: 0,
12
+        centerTitle: true,
13
+        backgroundColor: Colors.white,
14
+        title: Text(
15
+          '用户协议及隐私政策',
16
+          style: TextStyle(
17
+              color: Colors.black,
18
+              fontSize: 17.sp,
19
+              letterSpacing: 2,
20
+              fontWeight: FontWeight.bold),
21
+        ),
22
+      ),
23
+      body: Container(
24
+        color: const Color(0xFFFFFFFF),
25
+        padding: EdgeInsets.all(15.w),
26
+        child: Column(
27
+          children: [
28
+            Container(
29
+              margin: EdgeInsets.fromLTRB(0, 0, 0, 30.h),
30
+              child:  Row(
31
+                mainAxisAlignment: MainAxisAlignment.center,
32
+                children: [
33
+                  Image(image: const AssetImage(
34
+                      'images/icons/decorate.png'
35
+                  ),width: 16.5.w),
36
+                  Text('用户协议',
37
+                    style: TextStyle(
38
+                        fontSize: 20.sp,
39
+                        fontWeight: FontWeight.bold,
40
+                        color: const Color(0xFF222222)
41
+                    ),
42
+                  ),
43
+                  Image(image: const AssetImage('images/icons/decorate.png'),width: 16.5.w),
44
+                ],
45
+              ),
46
+            ),
47
+
48
+          ],
49
+        ),
50
+      ),
51
+    );
52
+
53
+  }
54
+}

+ 11
- 7
lib/pages/orderInfo/index.dart View File

6
 
6
 
7
 
7
 
8
 
8
 
9
-
10
 class OrderPageInfo extends StatefulWidget {
9
 class OrderPageInfo extends StatefulWidget {
11
   const OrderPageInfo({Key? key}) : super(key: key);
10
   const OrderPageInfo({Key? key}) : super(key: key);
12
 
11
 
19
   Widget build(BuildContext context) {
18
   Widget build(BuildContext context) {
20
     return Scaffold(
19
     return Scaffold(
21
       resizeToAvoidBottomInset: false,
20
       resizeToAvoidBottomInset: false,
22
-      appBar:  AppBar(
23
-        title:  Text('订单'),
24
-        leading:  Icon(Icons.arrow_back_ios),
25
-        backgroundColor: Color(0xff2b9270),
26
-        // backgroundColor: Colors.transparent,
21
+      appBar: AppBar(
22
+        elevation: 0,
27
         centerTitle: true,
23
         centerTitle: true,
28
-
24
+        backgroundColor: Colors.white,
25
+        title: Text(
26
+          '订单详情',
27
+          style: TextStyle(
28
+              color: Colors.black,
29
+              fontSize: 17.sp,
30
+              letterSpacing: 2,
31
+              fontWeight: FontWeight.bold),
32
+        ),
29
       ),
33
       ),
30
       body:      Column(
34
       body:      Column(
31
         children: [
35
         children: [

+ 4
- 0
lib/routes/pages.dart View File

1
 
1
 
2
 import 'package:farmer_client/pages/ArticleInfo/ArticleInfo.dart';
2
 import 'package:farmer_client/pages/ArticleInfo/ArticleInfo.dart';
3
+import 'package:farmer_client/pages/aboutUs/index.dart';
3
 import 'package:farmer_client/pages/addAddress/index.dart';
4
 import 'package:farmer_client/pages/addAddress/index.dart';
4
 import 'package:farmer_client/pages/addressList/index.dart';
5
 import 'package:farmer_client/pages/addressList/index.dart';
6
+import 'package:farmer_client/pages/agreement/index.dart';
5
 import 'package:farmer_client/pages/userInfo/index.dart';
7
 import 'package:farmer_client/pages/userInfo/index.dart';
6
 import 'package:get/get.dart';
8
 import 'package:get/get.dart';
7
 import '../pages/index.dart';
9
 import '../pages/index.dart';
16
   GetPage(name: '/addAddress', page: () =>  AddAddress()),
18
   GetPage(name: '/addAddress', page: () =>  AddAddress()),
17
   GetPage(name: '/userInfo', page: () =>  UserInfo()),
19
   GetPage(name: '/userInfo', page: () =>  UserInfo()),
18
   GetPage(name: '/machineryMap', page: () =>  MachineryMapPage()),
20
   GetPage(name: '/machineryMap', page: () =>  MachineryMapPage()),
21
+  GetPage(name: '/aboutUs', page: () =>  AboutUs()),
22
+  GetPage(name: '/agreement', page: () =>  Agreement()),
19
 ];
23
 ];

+ 0
- 1
lib/utils/Request.dart View File

1
 import 'dart:convert';
1
 import 'dart:convert';
2
 
2
 
3
 import 'package:dio/dio.dart';
3
 import 'package:dio/dio.dart';
4
-import 'package:flutter/foundation.dart';
5
 import 'package:get/get.dart';
4
 import 'package:get/get.dart';
6
 import 'package:get_storage/get_storage.dart';
5
 import 'package:get_storage/get_storage.dart';
7
 
6
 

+ 4
- 0
lib/widgets/CarsCard.dart View File

5
 import 'package:get/get_core/src/get_main.dart';
5
 import 'package:get/get_core/src/get_main.dart';
6
 
6
 
7
 import '../pages/OrderConfirmation/index.dart';
7
 import '../pages/OrderConfirmation/index.dart';
8
+import '../pages/machinery/map/index.dart';
8
 
9
 
9
 // class CarItem {
10
 // class CarItem {
10
 //   late String name;
11
 //   late String name;
24
   @override
25
   @override
25
   Widget build(BuildContext context) {
26
   Widget build(BuildContext context) {
26
     return Container(
27
     return Container(
28
+      margin: EdgeInsets.fromLTRB(0, 20, 0, 20),
27
       decoration: BoxDecoration(
29
       decoration: BoxDecoration(
28
         color: Color(0xfff2f2f2),
30
         color: Color(0xfff2f2f2),
29
       ),
31
       ),
89
                       onPressed: () {
91
                       onPressed: () {
90
                         Get.to(OrderConfirmation());
92
                         Get.to(OrderConfirmation());
91
                         print('点我去预约');
93
                         print('点我去预约');
94
+
92
                       },
95
                       },
93
                       child: const Text(
96
                       child: const Text(
94
                         "预约",
97
                         "预约",
142
                             ),
145
                             ),
143
                             onTap: () {
146
                             onTap: () {
144
                               print('进入地图');
147
                               print('进入地图');
148
+                              Get.to(MachineryMapPage());
145
                             },
149
                             },
146
                           )
150
                           )
147
                         ],
151
                         ],

+ 179
- 180
lib/widgets/OrderInfoCard.dart View File

7
   @override
7
   @override
8
   Widget build(BuildContext context) {
8
   Widget build(BuildContext context) {
9
     return Container(
9
     return Container(
10
-      width: 345.w,
11
-      height: 484.5.h,
12
-      margin: EdgeInsets.fromLTRB(15.w, 17.w, 15.w, 0),
13
-      decoration: BoxDecoration(
14
-        color: Colors.white,
15
-        //设置四周圆角 角度
16
-        borderRadius: BorderRadius.all(Radius.circular(2.0)),
17
-        //设置四周边框
18
-        boxShadow: [
19
-          BoxShadow(
20
-            blurRadius: 10, //阴影范围
21
-            spreadRadius: 0.1, //阴影浓度
22
-            color: Colors.grey.withOpacity(0.2), //阴影颜色
23
-          ),
24
-        ],
25
-      ),
26
-      child: Column(
27
-        crossAxisAlignment: CrossAxisAlignment.start,
28
-        children: [
29
-          Container(
30
-              margin: EdgeInsets.fromLTRB(15.w, 0, 0, 0),
31
-              child: Column(
32
-                crossAxisAlignment: CrossAxisAlignment.start,
33
-                children: [
34
-                  Container(
35
-                    padding: EdgeInsets.fromLTRB(0, 15, 0, 20),
36
-                    width: 314.w,
37
-                    decoration: const BoxDecoration(
38
-                        border: Border(
39
-                            bottom:
40
-                                BorderSide(width: 0.5, color: Color(0x20000000)
41
-                                    // 0x17000000
42
-                                    ))),
43
-                    child: RichText(
44
-                      text: const TextSpan(children: <InlineSpan>[
45
-                        TextSpan(
46
-                            text: '订单编号:',
47
-                            style: TextStyle(
48
-                                color: Color(0xff666666),
49
-                                fontSize: 16,
50
-                                fontWeight: FontWeight.bold)),
51
-                        TextSpan(
52
-                            text: 'XUHUI12345',
53
-                            style: TextStyle(
54
-                                color: Color(0xff222222),
55
-                                fontSize: 16,
56
-                                fontWeight: FontWeight.bold)),
57
-                      ]),
10
+        width: 345.w,
11
+        height: 484.5.h,
12
+        margin: EdgeInsets.fromLTRB(15.w, 17.w, 15.w, 0),
13
+        decoration: BoxDecoration(
14
+          color: Colors.white,
15
+          //设置四周圆角 角度
16
+          borderRadius: BorderRadius.all(Radius.circular(2.0)),
17
+          //设置四周边框
18
+          boxShadow: [
19
+            BoxShadow(
20
+              blurRadius: 10, //阴影范围
21
+              spreadRadius: 0.1, //阴影浓度
22
+              color: Colors.grey.withOpacity(0.2), //阴影颜色
23
+            ),
24
+          ],
25
+        ),
26
+        child: Column(
27
+          crossAxisAlignment: CrossAxisAlignment.start,
28
+          children: [
29
+            Container(
30
+                margin: EdgeInsets.fromLTRB(15.w, 0, 0, 0),
31
+                child: Column(
32
+                  crossAxisAlignment: CrossAxisAlignment.start,
33
+                  children: [
34
+                    Container(
35
+                      padding: EdgeInsets.fromLTRB(0, 15, 0, 20),
36
+                      width: 314.w,
37
+                      decoration: const BoxDecoration(
38
+                          border: Border(
39
+                              bottom: BorderSide(
40
+                                  width: 0.5, color: Color(0x20000000)
41
+                                  // 0x17000000
42
+                                  ))),
43
+                      child: RichText(
44
+                        text: const TextSpan(children: <InlineSpan>[
45
+                          TextSpan(
46
+                              text: '订单编号:',
47
+                              style: TextStyle(
48
+                                  color: Color(0xff666666),
49
+                                  fontSize: 16,
50
+                                  fontWeight: FontWeight.bold)),
51
+                          TextSpan(
52
+                              text: 'XUHUI12345',
53
+                              style: TextStyle(
54
+                                  color: Color(0xff222222),
55
+                                  fontSize: 16,
56
+                                  fontWeight: FontWeight.bold)),
57
+                        ]),
58
+                      ),
58
                     ),
59
                     ),
59
-                  ),
60
-                  Padding(
61
-                    padding: EdgeInsets.fromLTRB(0, 20, 0, 15),
62
-                    child: RichText(
63
-                      text: const TextSpan(children: <InlineSpan>[
64
-                        TextSpan(
65
-                            text: '农机名称:',
66
-                            style: TextStyle(
67
-                                color: Color(0xff666666),
68
-                                fontSize: 16,
69
-                                fontWeight: FontWeight.bold)),
70
-                        TextSpan(
71
-                            text: '老李家收割机MVGV-005',
72
-                            style: TextStyle(
73
-                                color: Color(0xff222222),
74
-                                fontSize: 16,
75
-                                fontWeight: FontWeight.bold)),
76
-                      ]),
60
+                    Padding(
61
+                      padding: EdgeInsets.fromLTRB(0, 20, 0, 15),
62
+                      child: RichText(
63
+                        text: const TextSpan(children: <InlineSpan>[
64
+                          TextSpan(
65
+                              text: '农机名称:',
66
+                              style: TextStyle(
67
+                                  color: Color(0xff666666),
68
+                                  fontSize: 16,
69
+                                  fontWeight: FontWeight.bold)),
70
+                          TextSpan(
71
+                              text: '老李家收割机MVGV-005',
72
+                              style: TextStyle(
73
+                                  color: Color(0xff222222),
74
+                                  fontSize: 16,
75
+                                  fontWeight: FontWeight.bold)),
76
+                        ]),
77
+                      ),
77
                     ),
78
                     ),
78
-                  ),
79
-                  Padding(
80
-                    padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
81
-                    child: RichText(
82
-                      text: const TextSpan(children: <InlineSpan>[
83
-                        TextSpan(
84
-                            text: '作业面积:',
85
-                            style: TextStyle(
86
-                                color: Color(0xff666666),
87
-                                fontSize: 16,
88
-                                fontWeight: FontWeight.bold)),
89
-                        TextSpan(
90
-                            text: '1',
91
-                            style: TextStyle(
92
-                                color: Color(0xff222222),
93
-                                fontSize: 16,
94
-                                fontWeight: FontWeight.bold)),
95
-                      ]),
79
+                    Padding(
80
+                      padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
81
+                      child: RichText(
82
+                        text: const TextSpan(children: <InlineSpan>[
83
+                          TextSpan(
84
+                              text: '作业面积:',
85
+                              style: TextStyle(
86
+                                  color: Color(0xff666666),
87
+                                  fontSize: 16,
88
+                                  fontWeight: FontWeight.bold)),
89
+                          TextSpan(
90
+                              text: '1',
91
+                              style: TextStyle(
92
+                                  color: Color(0xff222222),
93
+                                  fontSize: 16,
94
+                                  fontWeight: FontWeight.bold)),
95
+                        ]),
96
+                      ),
96
                     ),
97
                     ),
97
-                  ),
98
-                  Padding(
99
-                    padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
100
-                    child: RichText(
101
-                      text: const TextSpan(children: <InlineSpan>[
102
-                        TextSpan(
103
-                            text: '需求时间:',
104
-                            style: TextStyle(
105
-                                color: Color(0xff666666),
106
-                                fontSize: 16,
107
-                                fontWeight: FontWeight.bold)),
108
-                        TextSpan(
109
-                            text: '2018-08-21',
110
-                            style: TextStyle(
111
-                                color: Color(0xff222222),
112
-                                fontSize: 16,
113
-                                fontWeight: FontWeight.bold)),
114
-                      ]),
98
+                    Padding(
99
+                      padding: EdgeInsets.fromLTRB(0, 0, 0, 15),
100
+                      child: RichText(
101
+                        text: const TextSpan(children: <InlineSpan>[
102
+                          TextSpan(
103
+                              text: '需求时间:',
104
+                              style: TextStyle(
105
+                                  color: Color(0xff666666),
106
+                                  fontSize: 16,
107
+                                  fontWeight: FontWeight.bold)),
108
+                          TextSpan(
109
+                              text: '2018-08-21',
110
+                              style: TextStyle(
111
+                                  color: Color(0xff222222),
112
+                                  fontSize: 16,
113
+                                  fontWeight: FontWeight.bold)),
114
+                        ]),
115
+                      ),
115
                     ),
116
                     ),
116
-                  ),
117
-                  Padding(
118
-                    padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
119
-                    child: RichText(
120
-                      text: const TextSpan(children: <InlineSpan>[
121
-                        TextSpan(
122
-                            text: '下单时间:',
123
-                            style: TextStyle(
124
-                                color: Color(0xff666666),
125
-                                fontSize: 16,
126
-                                fontWeight: FontWeight.bold)),
127
-                        TextSpan(
128
-                            text: '2022-04-13',
129
-                            style: TextStyle(
130
-                                color: Color(0xff222222),
131
-                                fontSize: 16,
132
-                                fontWeight: FontWeight.bold)),
133
-                      ]),
117
+                    Padding(
118
+                      padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
119
+                      child: RichText(
120
+                        text: const TextSpan(children: <InlineSpan>[
121
+                          TextSpan(
122
+                              text: '下单时间:',
123
+                              style: TextStyle(
124
+                                  color: Color(0xff666666),
125
+                                  fontSize: 16,
126
+                                  fontWeight: FontWeight.bold)),
127
+                          TextSpan(
128
+                              text: '2022-04-13',
129
+                              style: TextStyle(
130
+                                  color: Color(0xff222222),
131
+                                  fontSize: 16,
132
+                                  fontWeight: FontWeight.bold)),
133
+                        ]),
134
+                      ),
134
                     ),
135
                     ),
135
-                  ),
136
-                  Padding(
137
-                    padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
138
-                    child: RichText(
139
-                      text: TextSpan(children: <InlineSpan>[
140
-                        TextSpan(
141
-                            text: '订单状态:',
142
-                            style: TextStyle(
143
-                                color: Color(0xff666666),
144
-                                fontSize: 16,
145
-                                fontWeight: FontWeight.bold)),
146
-                        TextSpan(
147
-                            text: '待付款',
148
-                            style: TextStyle(
149
-                                color: Color(0xff51D4FF),
150
-                                fontSize: 16,
151
-                                fontWeight: FontWeight.bold)),
152
-                      ]),
136
+                    Padding(
137
+                      padding: EdgeInsets.fromLTRB(0, 0, 0, 20),
138
+                      child: RichText(
139
+                        text: TextSpan(children: <InlineSpan>[
140
+                          TextSpan(
141
+                              text: '订单状态:',
142
+                              style: TextStyle(
143
+                                  color: Color(0xff666666),
144
+                                  fontSize: 16,
145
+                                  fontWeight: FontWeight.bold)),
146
+                          TextSpan(
147
+                              text: '待付款',
148
+                              style: TextStyle(
149
+                                  color: Color(0xff51D4FF),
150
+                                  fontSize: 16,
151
+                                  fontWeight: FontWeight.bold)),
152
+                        ]),
153
+                      ),
153
                     ),
154
                     ),
154
-                  ),
155
-                  Container(
156
-                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0),
157
-                      width: 314.w,
158
-                      decoration: const BoxDecoration(
159
-                          border: Border(
160
-                              top: BorderSide(
161
-                                  width: 0.8, color: Color(0x20000000)
162
-                                  // 0x17000000
163
-                                  ))),
164
-                      child: Column(
165
-                        children: [
166
-                          Row(
167
-                            mainAxisAlignment: MainAxisAlignment.spaceBetween,
168
-                            children: [
169
-                              Text('费用:',
170
-                                  style: TextStyle(
171
-                                      color: Color(0xff666666),
172
-                                      fontSize: 16,
173
-                                      fontWeight: FontWeight.bold)),
174
-                              Text('8880',
175
-                                  style: TextStyle(
176
-                                      color: Color(0xffB61515),
177
-                                      fontSize: 16,
178
-                                      fontWeight: FontWeight.bold)),
179
-                            ],
180
-                          ),
181
-                          Padding(padding: EdgeInsets.fromLTRB(0, 30, 0, 0),
182
-                            child:  Row(
155
+                    Container(
156
+                        padding: EdgeInsets.fromLTRB(0, 20, 0, 0),
157
+                        width: 314.w,
158
+                        decoration: const BoxDecoration(
159
+                            border: Border(
160
+                                top: BorderSide(
161
+                                    width: 0.8, color: Color(0x20000000)
162
+                                    // 0x17000000
163
+                                    ))),
164
+                        child: Column(
165
+                          children: [
166
+                            Row(
183
                               mainAxisAlignment: MainAxisAlignment.spaceBetween,
167
                               mainAxisAlignment: MainAxisAlignment.spaceBetween,
184
                               children: [
168
                               children: [
185
-                                Text('状态:',
169
+                                Text('费用:',
186
                                     style: TextStyle(
170
                                     style: TextStyle(
187
                                         color: Color(0xff666666),
171
                                         color: Color(0xff666666),
188
                                         fontSize: 16,
172
                                         fontSize: 16,
189
                                         fontWeight: FontWeight.bold)),
173
                                         fontWeight: FontWeight.bold)),
190
-                                Text('待付款',
174
+                                Text('8880',
191
                                     style: TextStyle(
175
                                     style: TextStyle(
192
-                                        color: Color(0xff51D4FF),
176
+                                        color: Color(0xffB61515),
193
                                         fontSize: 16,
177
                                         fontSize: 16,
194
                                         fontWeight: FontWeight.bold)),
178
                                         fontWeight: FontWeight.bold)),
195
                               ],
179
                               ],
196
                             ),
180
                             ),
197
-
198
-                          ),
199
-
200
-                        ],
201
-                      )),
202
-                ],
203
-              )),
204
-
205
-        ],
206
-      ),
181
+                            Padding(
182
+                              padding: EdgeInsets.fromLTRB(0, 30, 0, 0),
183
+                              child: Row(
184
+                                mainAxisAlignment:
185
+                                    MainAxisAlignment.spaceBetween,
186
+                                children: [
187
+                                  Text('状态:',
188
+                                      style: TextStyle(
189
+                                          color: Color(0xff666666),
190
+                                          fontSize: 16,
191
+                                          fontWeight: FontWeight.bold)),
192
+                                  Text('待付款',
193
+                                      style: TextStyle(
194
+                                          color: Color(0xff51D4FF),
195
+                                          fontSize: 16,
196
+                                          fontWeight: FontWeight.bold)),
197
+                                ],
198
+                              ),
199
+                            ),
200
+                          ],
201
+                        )),
202
+                  ],
203
+                )),
204
+          ],
205
+        ),
207
 
206
 
208
     );
207
     );
209
   }
208
   }

+ 6
- 0
lib/widgets/OrderListCard.dart View File

1
 import 'package:flutter/material.dart';
1
 import 'package:flutter/material.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+import 'package:get/get.dart';
4
+
5
+import '../pages/OrderConfirmation/index.dart';
6
+import '../pages/orderInfo/index.dart';
7
+import 'OrderInfoCard.dart';
3
 
8
 
4
 class OrderListCard extends StatelessWidget {
9
 class OrderListCard extends StatelessWidget {
5
   const OrderListCard({Key? key}) : super(key: key);
10
   const OrderListCard({Key? key}) : super(key: key);
74
                             )),
79
                             )),
75
                         onTap: () {
80
                         onTap: () {
76
                           print('进入详情');
81
                           print('进入详情');
82
+                          Get.to(OrderPageInfo());
77
                         },
83
                         },
78
                       )
84
                       )
79
                     ],
85
                     ],

+ 42
- 36
lib/widgets/Search.dart View File

1
 import 'package:flutter/material.dart';
1
 import 'package:flutter/material.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
 
3
 
4
+
4
 class Search extends StatefulWidget {
5
 class Search extends StatefulWidget {
5
   const Search({Key? key}) : super(key: key);
6
   const Search({Key? key}) : super(key: key);
6
 
7
 
12
 
13
 
13
   @override
14
   @override
14
   Widget build(BuildContext context) {
15
   Widget build(BuildContext context) {
15
-    return Column(
16
-      children: [
17
-        Container(
18
-          height: 46,
19
-          alignment: Alignment.center,
20
-          child:  TextField(
21
-            onChanged: (value) {
22
-              print('打一个字我搜索一下$value');
23
-            },
24
-            onEditingComplete: () {
25
-              FocusScope.of(context).requestFocus(FocusNode());
26
-              print('点击键盘搜索');
27
-            },
28
-            style: const TextStyle(fontSize: 15, color: Colors.black, textBaseline: TextBaseline.alphabetic),
29
-            decoration: const InputDecoration(
30
-              isDense: true,
31
-              prefixIcon: Padding(
32
-                padding: EdgeInsets.only(left: 0),
33
-                child:  Icon(Icons.search,),
34
-              ),
35
-              fillColor: Color(0x30cccccc),
36
-              filled: true,
37
-              enabledBorder: OutlineInputBorder(
38
-                  borderSide: BorderSide(color: Color(0x00FF0000)),
39
-                  borderRadius: BorderRadius.all(Radius.circular(100))),
40
-              hintText: '请输入关键字查询',
41
-              hintStyle: TextStyle(
42
-                  textBaseline: TextBaseline.alphabetic, //用于提示文字对齐
43
-            ),
44
-              focusedBorder: OutlineInputBorder(
45
-                  borderSide: BorderSide(color: Color(0x00000000)),
46
-                  borderRadius: BorderRadius.all(Radius.circular(100))),
16
+    return LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints){
17
+      return  Column(
18
+        children: [
19
+          Container(
20
+            decoration: BoxDecoration(
21
+              color: Colors.white
47
             ),
22
             ),
23
+      width: constraints.maxWidth,
24
+      height: 34,
25
+      alignment: Alignment.center,
26
+      child:  TextField(
27
+              onChanged: (value) {
28
+                print('打一个字我搜索一下$value');
29
+              },
30
+              onEditingComplete: () {
31
+                FocusScope.of(context).requestFocus(FocusNode());
32
+                print('点击键盘搜索');
33
+              },
34
+              style: const TextStyle(fontSize: 15, color: Colors.black, textBaseline: TextBaseline.alphabetic),
35
+              decoration: const InputDecoration(
36
+                isDense: true,
37
+                prefixIcon: Padding(
38
+                  padding: EdgeInsets.only(left: 0),
39
+                  child:  Icon(Icons.search,),
40
+                ),
41
+                fillColor: Color(0x30cccccc),
42
+                filled: true,
43
+                border: OutlineInputBorder(borderSide: BorderSide.none),
44
+      contentPadding: EdgeInsets.all(0),
45
+                enabledBorder: OutlineInputBorder(
46
+                    borderSide: BorderSide(color: Color(0x00FF0000)),
47
+                    borderRadius: BorderRadius.all(Radius.circular(100))),
48
+                hintText: '请输入关键字查询',
49
+                hintStyle: TextStyle(
50
+                  textBaseline: TextBaseline.alphabetic, //用于提示文字对齐
51
+                ),
48
 
52
 
49
-          ),
50
-        ),
51
-      ],
52
-    );
53
+              ),
53
 
54
 
55
+            ),
56
+          ),
57
+        ],
58
+      );
59
+    });
54
 
60
 
55
   }
61
   }
56
 }
62
 }

+ 78
- 71
pubspec.lock View File

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

+ 1
- 0
pubspec.yaml View File

46
   fluttertoast: ^8.0.9
46
   fluttertoast: ^8.0.9
47
   location: ^4.3.0
47
   location: ^4.3.0
48
   amap_flutter_map: ^3.0.0
48
   amap_flutter_map: ^3.0.0
49
+  carousel_slider: ^4.0.0
49
 
50
 
50
 
51
 
51
 
52