Browse Source

'用户协议'

李志伟 3 years ago
parent
commit
9a1220baf4

+ 32
- 27
lib/pages/TabBar/widgets/main/widgets/OtherColumn.dart View File

82
                       ),
82
                       ),
83
                     ),
83
                     ),
84
                   ),
84
                   ),
85
-                  Container(
86
-                    margin: EdgeInsets.fromLTRB(0, 10.w, 0, 0),
87
-                    width: 310.w,
88
-                    height: 45.w,
89
-                    decoration: const BoxDecoration(
90
-                        border: Border(
91
-                            bottom:
92
-                                BorderSide(width: 0.5, color: Color(0x20000000)
93
-                                    // 0x17000000
94
-                                    ))),
95
-                    child: ListTile(
96
-                      contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
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
                   ),

+ 21
- 27
lib/pages/aboutUs/index.dart View File

27
           children: [
27
           children: [
28
             Container(
28
             Container(
29
               margin: EdgeInsets.fromLTRB(0, 0, 0, 30.h),
29
               margin: EdgeInsets.fromLTRB(0, 0, 0, 30.h),
30
-              child:  Row(
30
+              child: Row(
31
                 mainAxisAlignment: MainAxisAlignment.center,
31
                 mainAxisAlignment: MainAxisAlignment.center,
32
                 children: [
32
                 children: [
33
-                  Image(image: const AssetImage(
34
-                      'images/icons/decorate.png'
35
-                  ),width: 16.5.w),
36
-                  Text('智慧农机的介绍',
33
+                  Image(
34
+                      image: const AssetImage('images/icons/decorate.png'),
35
+                      width: 16.5.w),
36
+                  Text(
37
+                    '智慧农机的介绍',
37
                     style: TextStyle(
38
                     style: TextStyle(
38
-                      fontSize: 20.sp,
39
-                      fontWeight: FontWeight.bold,
40
-                      color: const Color(0xFF222222)
41
-                    ),
39
+                        fontSize: 20.sp,
40
+                        fontWeight: FontWeight.bold,
41
+                        color: const Color(0xFF222222)),
42
                   ),
42
                   ),
43
-                  Image(image: const AssetImage('images/icons/decorate.png'),width: 16.5.w),
43
+                  Image(
44
+                      image: const AssetImage('images/icons/decorate.png'),
45
+                      width: 16.5.w),
44
                 ],
46
                 ],
45
               ),
47
               ),
46
             ),
48
             ),
47
             Text(
49
             Text(
48
               '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
50
               '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
49
               style: TextStyle(
51
               style: TextStyle(
50
-                color: Color(0xFF121212),
51
-                fontSize: 15.sp,
52
-                letterSpacing: 2,
53
-                height: 2
54
-              ),
52
+                  color: Color(0xFF121212),
53
+                  fontSize: 15.sp,
54
+                  letterSpacing: 2,
55
+                  height: 2),
55
             ),
56
             ),
56
             Text(
57
             Text(
57
               '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
58
               '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
59
                   color: Color(0xFF121212),
60
                   color: Color(0xFF121212),
60
                   fontSize: 15.sp,
61
                   fontSize: 15.sp,
61
                   letterSpacing: 2,
62
                   letterSpacing: 2,
62
-                  height: 2
63
-              ),
63
+                  height: 2),
64
             ),
64
             ),
65
             Text(
65
             Text(
66
               '        物联网、植保、农机、畜牧、农资、农经,科教等各级农业业务应用及数据,形成大农业”数据中心。',
66
               '        物联网、植保、农机、畜牧、农资、农经,科教等各级农业业务应用及数据,形成大农业”数据中心。',
68
                   color: Color(0xFF121212),
68
                   color: Color(0xFF121212),
69
                   fontSize: 15.sp,
69
                   fontSize: 15.sp,
70
                   letterSpacing: 2,
70
                   letterSpacing: 2,
71
-                  height: 2
72
-              ),
71
+                  height: 2),
73
             ),
72
             ),
74
-
75
             Text(
73
             Text(
76
               '        构建互联共享的“互联网+农业”信息服务体系以最终实现科学指导农业生产经营管理,政府决策监管和社会公众服务。',
74
               '        构建互联共享的“互联网+农业”信息服务体系以最终实现科学指导农业生产经营管理,政府决策监管和社会公众服务。',
77
               style: TextStyle(
75
               style: TextStyle(
78
                   color: Color(0xFF121212),
76
                   color: Color(0xFF121212),
79
                   fontSize: 15.sp,
77
                   fontSize: 15.sp,
80
                   letterSpacing: 2,
78
                   letterSpacing: 2,
81
-                  height: 2
82
-              ),
79
+                  height: 2),
83
             ),
80
             ),
84
             Text(
81
             Text(
85
               '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
82
               '        智慧农机旨在通过新一代物联网,大数据,3S等信息化技术有效整合省市县各级涉农资源',
87
                   color: Color(0xFF121212),
84
                   color: Color(0xFF121212),
88
                   fontSize: 15.sp,
85
                   fontSize: 15.sp,
89
                   letterSpacing: 2,
86
                   letterSpacing: 2,
90
-                  height: 2
91
-              ),
87
+                  height: 2),
92
             ),
88
             ),
93
             Text(
89
             Text(
94
               '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
90
               '        以顶层设计方式建成“一个平台一个中心N个应用”汇聚农业产业。农业“两区”。',
96
                   color: Color(0xFF121212),
92
                   color: Color(0xFF121212),
97
                   fontSize: 15.sp,
93
                   fontSize: 15.sp,
98
                   letterSpacing: 2,
94
                   letterSpacing: 2,
99
-                  height: 2
100
-              ),
95
+                  height: 2),
101
             ),
96
             ),
102
           ],
97
           ],
103
         ),
98
         ),
104
       ),
99
       ),
105
     );
100
     );
106
-
107
   }
101
   }
108
 }
102
 }

+ 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
+}

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

3
 import 'package:farmer_client/pages/aboutUs/index.dart';
3
 import 'package:farmer_client/pages/aboutUs/index.dart';
4
 import 'package:farmer_client/pages/addAddress/index.dart';
4
 import 'package:farmer_client/pages/addAddress/index.dart';
5
 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';
6
 import 'package:farmer_client/pages/userInfo/index.dart';
7
 import 'package:farmer_client/pages/userInfo/index.dart';
7
 import 'package:get/get.dart';
8
 import 'package:get/get.dart';
8
 import '../pages/index.dart';
9
 import '../pages/index.dart';
18
   GetPage(name: '/userInfo', page: () =>  UserInfo()),
19
   GetPage(name: '/userInfo', page: () =>  UserInfo()),
19
   GetPage(name: '/machineryMap', page: () =>  MachineryMapPage()),
20
   GetPage(name: '/machineryMap', page: () =>  MachineryMapPage()),
20
   GetPage(name: '/aboutUs', page: () =>  AboutUs()),
21
   GetPage(name: '/aboutUs', page: () =>  AboutUs()),
22
+  GetPage(name: '/agreement', page: () =>  Agreement()),
21
 ];
23
 ];