[baozhangchao] před 3 roky
rodič
revize
eed9d17363

+ 0
- 155
lib/pages/main/widgets/OtherColumn.dart Zobrazit soubor

@@ -1,155 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:flutter_screenutil/flutter_screenutil.dart';
3
-
4
-class OtherColumn extends StatelessWidget {
5
-  const OtherColumn({Key? key}) : super(key: key);
6
-
7
-  @override
8
-  Widget build(BuildContext context) {
9
-    return  Container(
10
-        alignment: Alignment.center,
11
-        width: 345.w,
12
-        margin: EdgeInsets.fromLTRB(0, 15.w, 0, 15.w),
13
-        decoration: BoxDecoration(
14
-          borderRadius: BorderRadius.circular(30),
15
-          color: Colors.white,
16
-          boxShadow: [
17
-            BoxShadow(
18
-              blurRadius: 10, //阴影范围
19
-              spreadRadius: 0.1, //阴影浓度
20
-              color: Colors.grey.withOpacity(0.2), //阴影颜色
21
-            ),
22
-          ],
23
-        ),
24
-        child: Column(
25
-          children: [
26
-            Container(
27
-                margin: EdgeInsets.fromLTRB(0, 30.w, 0, 20.w),
28
-                alignment: Alignment.topLeft,
29
-                decoration: const BoxDecoration(
30
-                    border: Border(
31
-                        left: BorderSide(width: 5, color: Color(0xff000000)
32
-                            // 0x17000000
33
-                            ))),
34
-                child: Padding(
35
-                  padding: EdgeInsets.fromLTRB(12.w, 0, 0, 0),
36
-                  child: Text(
37
-                    '地址信息',
38
-                    style: TextStyle(
39
-                      color: Color(0xff333333),
40
-                      fontWeight: FontWeight.bold,
41
-                      fontSize: 17.sp,
42
-                    ),
43
-                  ),
44
-                )),
45
-            Container(
46
-              child: Column(
47
-                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,
79
-                      ),
80
-                    ),
81
-                  ),
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,
112
-                      ),
113
-                    ),
114
-                  ),
115
-                  Container(
116
-                    margin: EdgeInsets.fromLTRB(0, 10.w, 0, 20.w),
117
-                    width: 310.w,
118
-                    height: 45.w,
119
-                    decoration: const BoxDecoration(
120
-                        border:Border(
121
-                            bottom:
122
-                            BorderSide(width: 0.5, color: Color(0x20000000)
123
-                              // 0x17000000
124
-                            ))
125
-                    ),
126
-
127
-                    child: ListTile(
128
-                      contentPadding: EdgeInsets.symmetric(horizontal: 0.0),
129
-
130
-                      leading: Image(
131
-                        image: AssetImage('images/feedbacks.png'),
132
-                        width: 18.w,
133
-                        height: 21.w,
134
-                      ),
135
-                      title: Transform(
136
-                        transform: Matrix4.translationValues(-20, 0.0, 0.0),
137
-                        child: Text("意见反馈",
138
-                            style: TextStyle(
139
-                                fontSize: 17.sp, color: Color(0xff333333))),
140
-                      ),
141
-                      trailing: Image(
142
-                        image: AssetImage('images/userRight.png'),
143
-                        width: 10.w,
144
-                        height: 18.w,
145
-                      ),
146
-                    ),
147
-                  ),
148
-
149
-                ],
150
-              ),
151
-            )
152
-          ],
153
-        ));
154
-  }
155
-}

+ 0
- 98
lib/pages/main/widgets/UserAddress.dart Zobrazit soubor

@@ -1,98 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:flutter_screenutil/flutter_screenutil.dart';
3
-
4
-class UserAddress extends StatelessWidget {
5
-  const UserAddress({Key? key}) : super(key: key);
6
-
7
-  @override
8
-  Widget build(BuildContext context) {
9
-    return Container(
10
-        alignment: Alignment.center,
11
-        height: 123.w,
12
-        width: 345.w,
13
-        margin: EdgeInsets.fromLTRB(0, 15.w, 0, 15.w),
14
-        decoration: BoxDecoration(
15
-          borderRadius: BorderRadius.circular(30),
16
-          color: Colors.white,
17
-          boxShadow: [
18
-            BoxShadow(
19
-              blurRadius: 10, //阴影范围
20
-              spreadRadius: 0.1, //阴影浓度
21
-              color: Colors.grey.withOpacity(0.2), //阴影颜色
22
-            ),
23
-          ],
24
-        ),
25
-        child: Column(
26
-          children: [
27
-            Container(
28
-                margin: EdgeInsets.fromLTRB(0, 30.w, 0, 20.w),
29
-                alignment: Alignment.topLeft,
30
-                decoration: const BoxDecoration(
31
-                    border: Border(
32
-                        left: BorderSide(width: 5, color: Color(0xff000000)
33
-                            // 0x17000000
34
-                            ))),
35
-                child: Padding(
36
-                  padding: EdgeInsets.fromLTRB(12.w, 0, 0, 0),
37
-                  child: Text(
38
-                    '地址信息',
39
-                    style: TextStyle(
40
-                      color: Color(0xff333333),
41
-                      fontWeight: FontWeight.bold,
42
-                      fontSize: 17.sp,
43
-                    ),
44
-                  ),
45
-                )),
46
-            Row(
47
-              mainAxisAlignment: MainAxisAlignment.spaceBetween,
48
-              children: [
49
-                Container(
50
-                  child: Row(
51
-                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
52
-                    children: [
53
-                      Padding(
54
-                        padding: EdgeInsets.fromLTRB(17.w, 0, 10.w, 0),
55
-                        child: Image(
56
-                          image: AssetImage('images/gpsImgae.png'),
57
-                          width: 12.w,
58
-                        ),
59
-                      ),
60
-                      Container(
61
-                        width: 260,
62
-                        child: GestureDetector(
63
-                          child: Text(
64
-                            '请填写详细地址请填写详细地址请填写详细地址',
65
-                            softWrap: true,
66
-                            maxLines: 1,
67
-                            textAlign: TextAlign.left,
68
-                            overflow: TextOverflow.ellipsis,
69
-                            style: TextStyle(
70
-                              fontWeight: FontWeight.bold,
71
-                              fontSize: 17,
72
-                            ),
73
-                          ),
74
-                          onTap: () {
75
-                            print('修改地址');
76
-                          },
77
-                        ),
78
-                      )
79
-                    ],
80
-                  ),
81
-                ),
82
-                Container(
83
-                  alignment: Alignment.center,
84
-                  padding: EdgeInsets.fromLTRB(0, 0, 30.w, 0),
85
-                  child: Text(
86
-                    '>>',
87
-                    style: TextStyle(
88
-                      fontWeight: FontWeight.bold,
89
-                      fontSize: 17,
90
-                    ),
91
-                  ),
92
-                ),
93
-              ],
94
-            ),
95
-          ],
96
-        ));
97
-  }
98
-}

+ 0
- 111
lib/pages/main/widgets/UserInfo.dart Zobrazit soubor

@@ -1,111 +0,0 @@
1
-import 'package:flutter/material.dart';
2
-import 'package:flutter_screenutil/flutter_screenutil.dart';
3
-
4
-class UserInfo extends StatelessWidget {
5
-  const UserInfo({Key? key}) : super(key: key);
6
-
7
-  @override
8
-  Widget build(BuildContext context) {
9
-    return Container(
10
-      margin: EdgeInsets.only(top: 20.0, bottom: 0.0),
11
-
12
-      alignment: Alignment.center,
13
-      height: 173.w,
14
-      width: 345.w,
15
-      decoration: BoxDecoration(
16
-        image: const DecorationImage(
17
-          image: AssetImage("images/mineBack.png"),
18
-          fit: BoxFit.cover,
19
-        ),
20
-        borderRadius: BorderRadius.circular(10),
21
-      ),
22
-      child: Stack(
23
-        fit: StackFit.expand,
24
-        children: [
25
-          Positioned(
26
-            top: 0,
27
-            right: 0,
28
-            child: Container(
29
-                alignment: Alignment.center,
30
-                height: 24.w,
31
-                width: 93.w,
32
-                decoration: const BoxDecoration(
33
-                  borderRadius: BorderRadius.only(
34
-                      bottomLeft: Radius.circular(20),
35
-                      topRight: Radius.circular(20)),
36
-                  color: Color(0x30000000),
37
-                ),
38
-                child: GestureDetector(
39
-                  child: const Text(
40
-                    '修改个人信息',
41
-                    style: TextStyle(color: Colors.white,fontSize: 14),
42
-                  ),
43
-                  onTap: () {
44
-                    print('修改个人信息');
45
-                  },
46
-                )),
47
-          ),
48
-          Row(
49
-            children: [
50
-              Column(
51
-                mainAxisAlignment: MainAxisAlignment.center,
52
-                children: [
53
-                  Container(
54
-                    decoration: BoxDecoration(
55
-                      shape: BoxShape.circle,
56
-                      border: Border.all(
57
-                        color: Colors.white,
58
-                        width: 2,
59
-                      ),
60
-                    ),
61
-                    margin: EdgeInsets.fromLTRB(30, 0, 15, 0),
62
-                    alignment: Alignment.center,
63
-                    child: Image.asset(
64
-                      "images/userMoren.png",
65
-                      width: 63.w,
66
-                    ),
67
-                  ),
68
-                ],
69
-              ),
70
-              Container(
71
-                child: Column(
72
-                  mainAxisAlignment: MainAxisAlignment.center,
73
-                  crossAxisAlignment: CrossAxisAlignment.start,
74
-                  children: [
75
-                    Container(
76
-                      margin: EdgeInsets.fromLTRB(0, 0, 0, 10),
77
-                      child: Text(
78
-                        '符西西',
79
-                        style: TextStyle(
80
-                          color: Colors.white,
81
-                          fontSize: 17,
82
-                        ),
83
-                      ),
84
-                    ),
85
-                    Container(
86
-                      margin: EdgeInsets.fromLTRB(0, 10, 0, 0),
87
-                      child: Text(
88
-                        '17775000245',
89
-                        style: TextStyle(
90
-                          color: Colors.white,
91
-                          fontSize: 17,
92
-                        ),
93
-                      ),
94
-                    ),
95
-                    // const Text(
96
-                    //      '点击登陆',
97
-                    //      style: TextStyle(
98
-                    //        color: Colors.white,
99
-                    //        fontSize: 17,
100
-                    //      ),
101
-                    //    ),
102
-                  ],
103
-                ),
104
-              ),
105
-            ],
106
-          ),
107
-        ],
108
-      ),
109
-    );
110
-  }
111
-}

+ 2
- 2
lib/utils/Request.dart Zobrazit soubor

@@ -29,8 +29,8 @@ final client = GetPlatform.isAndroid ? 'android' : 'ios';
29 29
 
30 30
 Dio createRequest() {
31 31
   var options = BaseOptions(
32
-    baseUrl: 'https://machine.njyunzhi.com/api/' + client + '/farmer',
33
-    // baseUrl: 'http://192.168.89.147:7080/api/' + client + '/farmer',
32
+    // baseUrl: 'https://machine.njyunzhi.com/api/' + client + '/farmer',
33
+    baseUrl: 'http://192.168.89.147:7080/api/' + client + '/farmer',
34 34
     connectTimeout: 5000,
35 35
     receiveTimeout: 3000,
36 36
   );

+ 0
- 3
pubspec.yaml Zobrazit soubor

@@ -65,9 +65,6 @@ dev_dependencies:
65 65
   # package. See that file for information about deactivating specific lint
66 66
   # rules and activating additional ones.
67 67
   flutter_lints: ^1.0.0
68
-  json_serializable: ^6.1.5
69
-  flutter_screenutil: ^5.3.1
70
-  fluttertoast: ^8.0.9
71 68
 # For information on the generic Dart part of this file, see the
72 69
 # following page: https://dart.dev/tools/pub/pubspec
73 70