瀏覽代碼

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

张延森 3 年之前
父節點
當前提交
df53cfeaef

二進制
images/icons/carsListImga.png 查看文件


+ 0
- 89
lib/components/UI/DefaultButton.dart 查看文件

@@ -1,89 +0,0 @@
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 查看文件

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

+ 13
- 6
lib/pages/ArticleInfo/ArticleInfo.dart 查看文件

@@ -7,13 +7,20 @@ class ArticleInfo extends StatelessWidget {
7 7
   @override
8 8
   Widget build(BuildContext context) {
9 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 24
         body: Container(
18 25
           padding: EdgeInsets.fromLTRB(15, 30, 15, 50),
19 26
 

+ 36
- 0
lib/pages/MoreCars/index.dart 查看文件

@@ -0,0 +1,36 @@
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 查看文件

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

+ 0
- 0
lib/pages/OrderConfirmation/widgets/timeDatePicker.dart 查看文件


+ 4
- 2
lib/pages/TabBar/index.dart 查看文件

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

+ 3
- 1
lib/pages/TabBar/widgets/Information/index.dart 查看文件

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

+ 110
- 0
lib/pages/TabBar/widgets/home/index.dart 查看文件

@@ -0,0 +1,110 @@
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 查看文件

@@ -0,0 +1,73 @@
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 查看文件

@@ -1,3 +1,6 @@
1
+import 'package:get/get.dart';
2
+import 'package:get_storage/get_storage.dart';
3
+
1 4
 import './widgets/OtherColumn.dart';
2 5
 import './widgets/UserAddress.dart';
3 6
 import './widgets/UserInfo.dart';
@@ -12,6 +15,7 @@ class MainPage extends StatefulWidget {
12 15
 }
13 16
 
14 17
 class _MainPageState extends State<MainPage> {
18
+  GetStorage box = GetStorage();
15 19
   @override
16 20
   Widget build(BuildContext context) {
17 21
     return Container(
@@ -41,8 +45,27 @@ class _MainPageState extends State<MainPage> {
41 45
                   height: 49.h,
42 46
                   child: ElevatedButton(
43 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 70
                     child: const Text(
48 71
                       "退出登陆",

+ 71
- 70
lib/pages/TabBar/widgets/main/widgets/OtherColumn.dart 查看文件

@@ -1,12 +1,13 @@
1 1
 import 'package:flutter/material.dart';
2 2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3
+import 'package:get/get.dart';
3 4
 
4 5
 class OtherColumn extends StatelessWidget {
5 6
   const OtherColumn({Key? key}) : super(key: key);
6 7
 
7 8
   @override
8 9
   Widget build(BuildContext context) {
9
-    return  Container(
10
+    return Container(
10 11
         alignment: Alignment.center,
11 12
         width: 345.w,
12 13
         margin: EdgeInsets.fromLTRB(0, 15.w, 0, 15.w),
@@ -45,70 +46,74 @@ class OtherColumn extends StatelessWidget {
45 46
             Container(
46 47
               child: Column(
47 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,16 +122,13 @@ class OtherColumn extends StatelessWidget {
117 122
                     width: 310.w,
118 123
                     height: 45.w,
119 124
                     decoration: const BoxDecoration(
120
-                        border:Border(
125
+                        border: Border(
121 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 130
                     child: ListTile(
128 131
                       contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
129
-
130 132
                       leading: Image(
131 133
                         image: AssetImage('images/feedbacks.png'),
132 134
                         width: 18.w,
@@ -145,7 +147,6 @@ class OtherColumn extends StatelessWidget {
145 147
                       ),
146 148
                     ),
147 149
                   ),
148
-
149 150
                 ],
150 151
               ),
151 152
             )

+ 0
- 1
lib/pages/TabBar/widgets/order/index.dart 查看文件

@@ -31,7 +31,6 @@ class _OrderPageState extends State<OrderPage> {
31 31
                   Padding(padding: EdgeInsets.fromLTRB(0, 0, 8, 0),
32 32
                   child:Image(image: AssetImage('images/ordersListImga.png'),fit: BoxFit.cover,width: 18.w,),
33 33
                   ),
34
-
35 34
                   Text('订单列表',
36 35
                     style: TextStyle(
37 36
                       color: Color(0xff222222),

+ 102
- 0
lib/pages/aboutUs/index.dart 查看文件

@@ -0,0 +1,102 @@
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 查看文件

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

+ 54
- 0
lib/pages/agreement/index.dart 查看文件

@@ -0,0 +1,54 @@
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 查看文件

@@ -6,7 +6,6 @@ import '../../widgets/OrderInfoCard.dart';
6 6
 
7 7
 
8 8
 
9
-
10 9
 class OrderPageInfo extends StatefulWidget {
11 10
   const OrderPageInfo({Key? key}) : super(key: key);
12 11
 
@@ -19,13 +18,18 @@ class _OrderPageInfoState extends State<OrderPageInfo> {
19 18
   Widget build(BuildContext context) {
20 19
     return Scaffold(
21 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 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 34
       body:      Column(
31 35
         children: [

+ 4
- 0
lib/routes/pages.dart 查看文件

@@ -1,7 +1,9 @@
1 1
 
2 2
 import 'package:farmer_client/pages/ArticleInfo/ArticleInfo.dart';
3
+import 'package:farmer_client/pages/aboutUs/index.dart';
3 4
 import 'package:farmer_client/pages/addAddress/index.dart';
4 5
 import 'package:farmer_client/pages/addressList/index.dart';
6
+import 'package:farmer_client/pages/agreement/index.dart';
5 7
 import 'package:farmer_client/pages/userInfo/index.dart';
6 8
 import 'package:get/get.dart';
7 9
 import '../pages/index.dart';
@@ -16,4 +18,6 @@ List<GetPage> pages = [
16 18
   GetPage(name: '/addAddress', page: () =>  AddAddress()),
17 19
   GetPage(name: '/userInfo', page: () =>  UserInfo()),
18 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 查看文件

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

+ 4
- 0
lib/widgets/CarsCard.dart 查看文件

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

+ 179
- 180
lib/widgets/OrderInfoCard.dart 查看文件

@@ -7,203 +7,202 @@ class OrderInfoCard extends StatelessWidget {
7 7
   @override
8 8
   Widget build(BuildContext context) {
9 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 167
                               mainAxisAlignment: MainAxisAlignment.spaceBetween,
184 168
                               children: [
185
-                                Text('状态:',
169
+                                Text('费用:',
186 170
                                     style: TextStyle(
187 171
                                         color: Color(0xff666666),
188 172
                                         fontSize: 16,
189 173
                                         fontWeight: FontWeight.bold)),
190
-                                Text('待付款',
174
+                                Text('8880',
191 175
                                     style: TextStyle(
192
-                                        color: Color(0xff51D4FF),
176
+                                        color: Color(0xffB61515),
193 177
                                         fontSize: 16,
194 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 查看文件

@@ -1,5 +1,10 @@
1 1
 import 'package:flutter/material.dart';
2 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 9
 class OrderListCard extends StatelessWidget {
5 10
   const OrderListCard({Key? key}) : super(key: key);
@@ -74,6 +79,7 @@ class OrderListCard extends StatelessWidget {
74 79
                             )),
75 80
                         onTap: () {
76 81
                           print('进入详情');
82
+                          Get.to(OrderPageInfo());
77 83
                         },
78 84
                       )
79 85
                     ],

+ 42
- 36
lib/widgets/Search.dart 查看文件

@@ -1,6 +1,7 @@
1 1
 import 'package:flutter/material.dart';
2 2
 import 'package:flutter_screenutil/flutter_screenutil.dart';
3 3
 
4
+
4 5
 class Search extends StatefulWidget {
5 6
   const Search({Key? key}) : super(key: key);
6 7
 
@@ -12,45 +13,50 @@ class _SearchState extends State<Search> {
12 13
 
13 14
   @override
14 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 查看文件

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

+ 1
- 0
pubspec.yaml 查看文件

@@ -46,6 +46,7 @@ dependencies:
46 46
   fluttertoast: ^8.0.9
47 47
   location: ^4.3.0
48 48
   amap_flutter_map: ^3.0.0
49
+  carousel_slider: ^4.0.0
49 50
 
50 51
 
51 52