李志伟 3 lat temu
rodzic
commit
074db734f1

+ 43
- 47
lib/pages/TabBar/widgets/main/widgets/OtherColumn.dart Wyświetl plik

@@ -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,37 +46,39 @@ 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
                   ),
@@ -84,16 +87,13 @@ class OtherColumn extends StatelessWidget {
84 87
                     width: 310.w,
85 88
                     height: 45.w,
86 89
                     decoration: const BoxDecoration(
87
-                        border:Border(
90
+                        border: Border(
88 91
                             bottom:
89
-                            BorderSide(width: 0.5, color: Color(0x20000000)
90
-                              // 0x17000000
91
-                            ))
92
-                    ),
93
-
92
+                                BorderSide(width: 0.5, color: Color(0x20000000)
93
+                                    // 0x17000000
94
+                                    ))),
94 95
                     child: ListTile(
95 96
                       contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
96
-
97 97
                       leading: Image(
98 98
                         image: AssetImage('images/versionUpdate.png'),
99 99
                         width: 18.w,
@@ -117,16 +117,13 @@ class OtherColumn extends StatelessWidget {
117 117
                     width: 310.w,
118 118
                     height: 45.w,
119 119
                     decoration: const BoxDecoration(
120
-                        border:Border(
120
+                        border: Border(
121 121
                             bottom:
122
-                            BorderSide(width: 0.5, color: Color(0x20000000)
123
-                              // 0x17000000
124
-                            ))
125
-                    ),
126
-
122
+                                BorderSide(width: 0.5, color: Color(0x20000000)
123
+                                    // 0x17000000
124
+                                    ))),
127 125
                     child: ListTile(
128 126
                       contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
129
-
130 127
                       leading: Image(
131 128
                         image: AssetImage('images/feedbacks.png'),
132 129
                         width: 18.w,
@@ -145,7 +142,6 @@ class OtherColumn extends StatelessWidget {
145 142
                       ),
146 143
                     ),
147 144
                   ),
148
-
149 145
                 ],
150 146
               ),
151 147
             )

+ 108
- 0
lib/pages/aboutUs/index.dart Wyświetl plik

@@ -0,0 +1,108 @@
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(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
+            Text(
48
+              '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
49
+              style: TextStyle(
50
+                color: Color(0xFF121212),
51
+                fontSize: 15.sp,
52
+                letterSpacing: 2,
53
+                height: 2
54
+              ),
55
+            ),
56
+            Text(
57
+              '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
58
+              style: TextStyle(
59
+                  color: Color(0xFF121212),
60
+                  fontSize: 15.sp,
61
+                  letterSpacing: 2,
62
+                  height: 2
63
+              ),
64
+            ),
65
+            Text(
66
+              '        物联网、植保、农机、畜牧、农资、农经,科教等各级农业业务应用及数据,形成大农业”数据中心。',
67
+              style: TextStyle(
68
+                  color: Color(0xFF121212),
69
+                  fontSize: 15.sp,
70
+                  letterSpacing: 2,
71
+                  height: 2
72
+              ),
73
+            ),
74
+
75
+            Text(
76
+              '        构建互联共享的“互联网+农业”信息服务体系以最终实现科学指导农业生产经营管理,政府决策监管和社会公众服务。',
77
+              style: TextStyle(
78
+                  color: Color(0xFF121212),
79
+                  fontSize: 15.sp,
80
+                  letterSpacing: 2,
81
+                  height: 2
82
+              ),
83
+            ),
84
+            Text(
85
+              '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
86
+              style: TextStyle(
87
+                  color: Color(0xFF121212),
88
+                  fontSize: 15.sp,
89
+                  letterSpacing: 2,
90
+                  height: 2
91
+              ),
92
+            ),
93
+            Text(
94
+              '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
95
+              style: TextStyle(
96
+                  color: Color(0xFF121212),
97
+                  fontSize: 15.sp,
98
+                  letterSpacing: 2,
99
+                  height: 2
100
+              ),
101
+            ),
102
+          ],
103
+        ),
104
+      ),
105
+    );
106
+
107
+  }
108
+}

+ 2
- 0
lib/routes/pages.dart Wyświetl plik

@@ -1,5 +1,6 @@
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';
5 6
 import 'package:farmer_client/pages/userInfo/index.dart';
@@ -16,4 +17,5 @@ List<GetPage> pages = [
16 17
   GetPage(name: '/addAddress', page: () =>  AddAddress()),
17 18
   GetPage(name: '/userInfo', page: () =>  UserInfo()),
18 19
   GetPage(name: '/machineryMap', page: () =>  MachineryMapPage()),
20
+  GetPage(name: '/aboutUs', page: () =>  AboutUs()),
19 21
 ];