Browse Source

repair若干Bug

[baozhangchao] 3 years ago
parent
commit
cac4d1d187

+ 15
- 10
lib/pages/ArticleInfo/ArticleInfo.dart View File

37
   Widget builder(BuildContext context) {
37
   Widget builder(BuildContext context) {
38
     naviTitle = '资讯详情';
38
     naviTitle = '资讯详情';
39
     return Container(
39
     return Container(
40
-      padding: EdgeInsets.fromLTRB(15, 30, 15, 50),
41
-      child: Column(
40
+      padding: EdgeInsets.fromLTRB(15, 30, 15, 0),
41
+      child: ListView(
42
         children: [
42
         children: [
43
           Container(
43
           Container(
44
-            alignment: Alignment.center,
45
             child: Row(
44
             child: Row(
46
               mainAxisAlignment: MainAxisAlignment.center,
45
               mainAxisAlignment: MainAxisAlignment.center,
47
               children: [
46
               children: [
49
                   image: AssetImage('images/icons/decorate.png'),
48
                   image: AssetImage('images/icons/decorate.png'),
50
                   width: 17,
49
                   width: 17,
51
                 ),
50
                 ),
52
-                Obx(() => Text(
53
-                      newsInfoContent.value.title.toString(),
54
-                      style: TextStyle(
55
-                        fontSize: 17.sp,
56
-                        fontWeight: FontWeight.bold,
57
-                      ),
58
-                    )),
51
+                Container(
52
+                  alignment: Alignment.center,
53
+
54
+                  width: 260.w,
55
+                  child:              Obx(() => Text(
56
+                    newsInfoContent.value.title.toString(),
57
+                    style: TextStyle(
58
+                      fontSize: 17.sp,
59
+                      fontWeight: FontWeight.bold,
60
+                    ),
61
+                  )),
62
+                ),
63
+
59
                 Image(
64
                 Image(
60
                     image: AssetImage('images/icons/decorate.png'), width: 17),
65
                     image: AssetImage('images/icons/decorate.png'), width: 17),
61
               ],
66
               ],

+ 188
- 184
lib/pages/OrderConfirmation/index.dart View File

81
       child: Form(
81
       child: Form(
82
         key: _formKey, //设置globalKey,用于后面获取FormState
82
         key: _formKey, //设置globalKey,用于后面获取FormState
83
         autovalidateMode: AutovalidateMode.onUserInteraction,
83
         autovalidateMode: AutovalidateMode.onUserInteraction,
84
-        child: Column(
85
-          children: <Widget>[
86
-            Container(
87
-              margin: EdgeInsets.fromLTRB(15, 20, 0, 0),
88
-              alignment: Alignment.topLeft,
89
-              child: Text(
90
-                '作业面积/公顷',
91
-                style: TextStyle(
92
-                    color: Color(0xff222222),
93
-                    fontSize: 17.sp,
94
-                    fontWeight: FontWeight.bold),
95
-              ),
96
-            ),
97
-            TextFormField(
98
-              autofocus: false,
99
-              keyboardType: TextInputType.number,
100
-              controller: _unameController,
101
-              decoration: const InputDecoration(
102
-                isCollapsed: true,
103
-                contentPadding:
84
+        child:
85
+            Column(
86
+              children: [
87
+                Container(
88
+                  margin: EdgeInsets.fromLTRB(15, 20, 0, 0),
89
+                  alignment: Alignment.topLeft,
90
+                  child: Text(
91
+                    '作业面积/公顷',
92
+                    style: TextStyle(
93
+                        color: Color(0xff222222),
94
+                        fontSize: 17.sp,
95
+                        fontWeight: FontWeight.bold),
96
+                  ),
97
+                ),
98
+                TextFormField(
99
+                  autofocus: false,
100
+                  keyboardType: TextInputType.number,
101
+                  controller: _unameController,
102
+                  decoration: const InputDecoration(
103
+                    isCollapsed: true,
104
+                    contentPadding:
104
                     EdgeInsets.symmetric(vertical: 8, horizontal: 16),
105
                     EdgeInsets.symmetric(vertical: 8, horizontal: 16),
105
-                counterText: '', //去掉计数
106
-                ///   UnderlineInputBorder 只有下边框  默认使用的就是下边框
107
-                border: UnderlineInputBorder(
108
-                  borderRadius: BorderRadius.all(Radius.circular(10)),
109
-                  borderSide: BorderSide(
110
-                    color: Color(0x30000000),
111
-                    width: 2.0,
106
+                    counterText: '', //去掉计数
107
+                    ///   UnderlineInputBorder 只有下边框  默认使用的就是下边框
108
+                    border: UnderlineInputBorder(
109
+                      borderRadius: BorderRadius.all(Radius.circular(10)),
110
+                      borderSide: BorderSide(
111
+                        color: Color(0x30000000),
112
+                        width: 2.0,
113
+                      ),
114
+                    ),
115
+                    floatingLabelBehavior: FloatingLabelBehavior.never,
116
+                    hintText: "请输入具体面积(公顷)",
112
                   ),
117
                   ),
118
+                  onChanged: (e) {
119
+                    workingArea(int.parse(e));
120
+                  },
121
+                  // 校验用户名
122
+                  validator: (v) {
123
+                    return v!.trim().isNotEmpty ? null : "作业面积/公顷不能为空";
124
+                  },
113
                 ),
125
                 ),
114
-                floatingLabelBehavior: FloatingLabelBehavior.never,
115
-                hintText: "请输入具体面积(公顷)",
116
-              ),
117
-              onChanged: (e) {
118
-                workingArea(int.parse(e));
119
-              },
120
-              // 校验用户名
121
-              validator: (v) {
122
-                return v!.trim().isNotEmpty ? null : "作业面积/公顷不能为空";
123
-              },
124
-            ),
125
-            Container(
126
-              margin: EdgeInsets.fromLTRB(15, 20, 0, 0),
127
-              alignment: Alignment.topLeft,
128
-              child: Text(
129
-                '作业时间:',
130
-                style: TextStyle(
131
-                    color: Color(0xff222222),
132
-                    fontSize: 17.sp,
133
-                    fontWeight: FontWeight.bold),
134
-              ),
135
-            ),
136
-            Container(
137
-                width: 345.w,
138
-                padding: EdgeInsets.fromLTRB(0, 15, 0, 15),
139
-                decoration: const BoxDecoration(
140
-                  border: Border(
141
-                      bottom: BorderSide(width: 1, color: Color(0x20000000)
142
-                          // 0x17000000
143
-                          )),
126
+                Container(
127
+                  margin: EdgeInsets.fromLTRB(15, 20, 0, 0),
128
+                  alignment: Alignment.topLeft,
129
+                  child: Text(
130
+                    '作业时间:',
131
+                    style: TextStyle(
132
+                        color: Color(0xff222222),
133
+                        fontSize: 17.sp,
134
+                        fontWeight: FontWeight.bold),
135
+                  ),
144
                 ),
136
                 ),
145
-                child: Row(
146
-                  children: [
147
-                    Image(
148
-                      image: AssetImage('images/icons/timeImage.png'),
149
-                      fit: BoxFit.cover,
150
-                      width: 18.w,
151
-                      height: 18.w,
152
-                    ),
153
-                    Padding(
154
-                      padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
155
-                      child: GestureDetector(
156
-                          onTap: () async {
157
-                            var handleChnage = await showDatePicker(
158
-                              context: context,
159
-                              helpText: '请选择作业开始时间',
160
-                              cancelText: '取消',
161
-                              confirmText: '确定',
162
-                              initialDate: selectDate() == null
163
-                                  ? DateTime.now()
164
-                                  : selectDate(),
165
-                              firstDate: DateTime.now(),
166
-                              lastDate: DateTime(2030),
167
-                            );
168
-                            selectDate(handleChnage!);
169
-                            print('${selectDate}+');
170
-                          },
171
-                          child: Obx(
172
-                            () => Text(selectDate == null
173
-                                ? '请选择日期'
174
-                                : '${DateFormat("yyyy-MM-dd").format(selectDate())}'),
137
+                Container(
138
+                    width: 345.w,
139
+                    padding: EdgeInsets.fromLTRB(0, 15, 0, 15),
140
+                    decoration: const BoxDecoration(
141
+                      border: Border(
142
+                          bottom: BorderSide(width: 1, color: Color(0x20000000)
143
+                            // 0x17000000
175
                           )),
144
                           )),
176
-                    )
177
-                  ],
178
-                )),
179
-            Container(
180
-              margin: EdgeInsets.fromLTRB(15, 20, 0, 0),
181
-              alignment: Alignment.topLeft,
182
-              child: Text(
183
-                '作业位置:',
184
-                style: TextStyle(
185
-                    color: Color(0xff222222),
186
-                    fontSize: 17.sp,
187
-                    fontWeight: FontWeight.bold),
188
-              ),
189
-            ),
190
-            Container(
191
-              width: 345.w,
192
-              padding: EdgeInsets.fromLTRB(0, 15, 0, 15),
193
-              decoration: BoxDecoration(
194
-                border: Border(
195
-                    bottom: BorderSide(width: 1, color: Color(0x20000000)
196
-                        // 0x17000000
145
+                    ),
146
+                    child: Row(
147
+                      children: [
148
+                        Image(
149
+                          image: AssetImage('images/icons/timeImage.png'),
150
+                          fit: BoxFit.cover,
151
+                          width: 18.w,
152
+                          height: 18.w,
153
+                        ),
154
+                        Padding(
155
+                          padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
156
+                          child: GestureDetector(
157
+                              onTap: () async {
158
+                                var handleChnage = await showDatePicker(
159
+                                  context: context,
160
+                                  helpText: '请选择作业开始时间',
161
+                                  cancelText: '取消',
162
+                                  confirmText: '确定',
163
+                                  initialDate: selectDate() == null
164
+                                      ? DateTime.now()
165
+                                      : selectDate(),
166
+                                  firstDate: DateTime.now(),
167
+                                  lastDate: DateTime(2030),
168
+                                );
169
+                                selectDate(handleChnage!);
170
+                                print('${selectDate}+');
171
+                              },
172
+                              child: Obx(
173
+                                    () => Text(selectDate == null
174
+                                    ? '请选择日期'
175
+                                    : '${DateFormat("yyyy-MM-dd").format(selectDate())}'),
176
+                              )),
177
+                        )
178
+                      ],
179
+                    )),
180
+                Container(
181
+                  margin: EdgeInsets.fromLTRB(15, 20, 0, 0),
182
+                  alignment: Alignment.topLeft,
183
+                  child: Text(
184
+                    '作业位置:',
185
+                    style: TextStyle(
186
+                        color: Color(0xff222222),
187
+                        fontSize: 17.sp,
188
+                        fontWeight: FontWeight.bold),
189
+                  ),
190
+                ),
191
+                Container(
192
+                  width: 345.w,
193
+                  padding: EdgeInsets.fromLTRB(0, 15, 0, 15),
194
+                  decoration: BoxDecoration(
195
+                    border: Border(
196
+                        bottom: BorderSide(width: 1, color: Color(0x20000000)
197
+                          // 0x17000000
197
                         )),
198
                         )),
198
-              ),
199
-              child: Row(
200
-                mainAxisAlignment: MainAxisAlignment.start,
201
-                children: [
202
-                  Image(
203
-                    image: AssetImage('images/gpsImgae.png'),
204
-                    fit: BoxFit.cover,
205
-                    width: 14.w,
206
-                    height: 17.h,
207
                   ),
199
                   ),
208
-                  Padding(
209
-                      padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
210
-                      child: GestureDetector(
211
-                        onTap: () {
212
-                          Get.toNamed('/addressList',
213
-                              arguments: {'isBack': true});
214
-                        },
215
-                        child: Container(
216
-                          width: 290.w,
217
-                          child: Obx(() => Text(
200
+                  child: Row(
201
+                    mainAxisAlignment: MainAxisAlignment.start,
202
+                    children: [
203
+                      Image(
204
+                        image: AssetImage('images/gpsImgae.png'),
205
+                        fit: BoxFit.cover,
206
+                        width: 14.w,
207
+                        height: 17.h,
208
+                      ),
209
+                      Padding(
210
+                          padding: EdgeInsets.fromLTRB(10, 0, 0, 0),
211
+                          child: GestureDetector(
212
+                            onTap: () {
213
+                              Get.toNamed('/addressList',
214
+                                  arguments: {'isBack': true});
215
+                            },
216
+                            child: Container(
217
+                              width: 290.w,
218
+                              child: Obx(() => Text(
218
                                 addressController.address.value.address
219
                                 addressController.address.value.address
219
                                     .toString(),
220
                                     .toString(),
220
                                 softWrap: true,
221
                                 softWrap: true,
222
                                 textAlign: TextAlign.left,
223
                                 textAlign: TextAlign.left,
223
                                 overflow: TextOverflow.ellipsis,
224
                                 overflow: TextOverflow.ellipsis,
224
                               )),
225
                               )),
225
-                        ),
226
-                      ))
227
-                ],
228
-              ),
229
-            ),
230
-            Spacer(),
231
-            Container(
232
-              alignment: Alignment.bottomCenter,
233
-              child: SizedBox(
234
-                width: 315.w,
235
-                height: 49.h,
236
-                child: ElevatedButton(
237
-                  onPressed: () {
238
-                    _orderSubmit();
239
-                  },
240
-                  child: const Text(
241
-                    "确定",
242
-                    style: TextStyle(
243
-                        fontSize: 18,
244
-                        color: Colors.white,
245
-                        fontWeight: FontWeight.bold),
226
+                            ),
227
+                          ))
228
+                    ],
246
                   ),
229
                   ),
247
-                  style: ButtonStyle(
248
-                    elevation: MaterialStateProperty.all(0),
249
-                    backgroundColor:
230
+                ),
231
+                Spacer(),
232
+                Container(
233
+                  alignment: Alignment.bottomCenter,
234
+                  child: SizedBox(
235
+                    width: 315.w,
236
+                    height: 49.h,
237
+                    child: ElevatedButton(
238
+                      onPressed: () {
239
+                        _orderSubmit();
240
+                      },
241
+                      child: const Text(
242
+                        "确定",
243
+                        style: TextStyle(
244
+                            fontSize: 18,
245
+                            color: Colors.white,
246
+                            fontWeight: FontWeight.bold),
247
+                      ),
248
+                      style: ButtonStyle(
249
+                        elevation: MaterialStateProperty.all(0),
250
+                        backgroundColor:
250
                         MaterialStateProperty.all(const Color(0xFFFF703B)),
251
                         MaterialStateProperty.all(const Color(0xFFFF703B)),
251
-                    shape: MaterialStateProperty.all(
252
-                        const RoundedRectangleBorder(
253
-                            borderRadius:
252
+                        shape: MaterialStateProperty.all(
253
+                            const RoundedRectangleBorder(
254
+                                borderRadius:
254
                                 BorderRadius.all(Radius.circular(24.4)))),
255
                                 BorderRadius.all(Radius.circular(24.4)))),
256
+                      ),
257
+                    ),
255
                   ),
258
                   ),
256
                 ),
259
                 ),
257
-              ),
258
-            ),
259
-            Container(
260
-              margin: EdgeInsets.fromLTRB(0, 30.w, 0, 30.w),
261
-              alignment: Alignment.bottomCenter,
262
-              child: SizedBox(
263
-                width: 315.w,
264
-                height: 49.h,
265
-                child: ElevatedButton(
266
-                  onPressed: () {
267
-                    Get.back();
268
-                  },
269
-                  child: const Text(
270
-                    "取消",
271
-                    style: TextStyle(
272
-                        fontSize: 18,
273
-                        color: Color(0xFFFF703B),
274
-                        fontWeight: FontWeight.bold),
275
-                  ),
276
-                  style: ButtonStyle(
277
-                    side: MaterialStateProperty.all(
278
-                        BorderSide(width: 1, color: Color(0xFFFF703B))), //边框
279
-                    elevation: MaterialStateProperty.all(0),
280
-                    backgroundColor: MaterialStateProperty.all(Colors.white),
281
-                    shape: MaterialStateProperty.all(
282
-                      RoundedRectangleBorder(
283
-                          borderRadius:
260
+                Container(
261
+                  margin: EdgeInsets.fromLTRB(0, 30.w, 0, 30.w),
262
+                  alignment: Alignment.bottomCenter,
263
+                  child: SizedBox(
264
+                    width: 315.w,
265
+                    height: 49.h,
266
+                    child: ElevatedButton(
267
+                      onPressed: () {
268
+                        Get.back();
269
+                      },
270
+                      child: const Text(
271
+                        "取消",
272
+                        style: TextStyle(
273
+                            fontSize: 18,
274
+                            color: Color(0xFFFF703B),
275
+                            fontWeight: FontWeight.bold),
276
+                      ),
277
+                      style: ButtonStyle(
278
+                        side: MaterialStateProperty.all(
279
+                            BorderSide(width: 1, color: Color(0xFFFF703B))), //边框
280
+                        elevation: MaterialStateProperty.all(0),
281
+                        backgroundColor: MaterialStateProperty.all(Colors.white),
282
+                        shape: MaterialStateProperty.all(
283
+                          RoundedRectangleBorder(
284
+                              borderRadius:
284
                               BorderRadius.all(Radius.circular(24.4))),
285
                               BorderRadius.all(Radius.circular(24.4))),
286
+                        ),
287
+                      ),
285
                     ),
288
                     ),
286
                   ),
289
                   ),
287
                 ),
290
                 ),
288
-              ),
291
+              ],
289
             ),
292
             ),
290
-          ],
291
-        ),
293
+
294
+
295
+
292
       ),
296
       ),
293
     );
297
     );
294
   }
298
   }

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

75
   @override
75
   @override
76
   Widget builder(BuildContext context) {
76
   Widget builder(BuildContext context) {
77
     naviTitle = '地址管理';
77
     naviTitle = '地址管理';
78
-    return Column(
78
+    return ListView(
79
       children: [
79
       children: [
80
         Container(
80
         Container(
81
           padding: EdgeInsets.all(15.w),
81
           padding: EdgeInsets.all(15.w),

+ 31
- 35
lib/pages/home/widgets/home/widgets/headers.dart View File

15
   @override
15
   @override
16
   Widget build(BuildContext context) {
16
   Widget build(BuildContext context) {
17
     if (widget.type) {
17
     if (widget.type) {
18
-      return Container(
19
-        child: Row(
20
-          // mainAxisAlignment: MainAxisAlignment.start,
21
-          children: [
22
-            Container(
23
-              height: 32.w,
24
-              decoration: BoxDecoration(color: Colors.white),
25
-              child: Row(
26
-                children: [
27
-                  Image(
28
-                    image: AssetImage('images/gpsImgae.png'),
29
-                    fit: BoxFit.cover,
30
-                    width: 14.w,
31
-                    height: 17.h,
32
-                  ),
33
-                  Padding(
34
-                    padding: EdgeInsets.fromLTRB(5, 0, 0, 0),
35
-                    child: Text(
36
-                      '邓州市',
37
-                      style: TextStyle(
38
-                        color: Color(0xff202020),
39
-                        fontSize: 16.sp,
40
-                        fontWeight: FontWeight.bold,
41
-                      ),
18
+      return
19
+          Container(
20
+            height: 32.w,
21
+            decoration: BoxDecoration(color: Colors.white),
22
+            child: Row(
23
+              children: [
24
+                Image(
25
+                  image: AssetImage('images/gpsImgae.png'),
26
+                  fit: BoxFit.cover,
27
+                  width: 14.w,
28
+                  height: 17.h,
29
+                ),
30
+                Padding(
31
+                  padding: EdgeInsets.fromLTRB(5, 0, 0, 0),
32
+                  child: Text(
33
+                    '邓州市',
34
+                    style: TextStyle(
35
+                      color: Color(0xff202020),
36
+                      fontSize: 16.sp,
37
+                      fontWeight: FontWeight.bold,
42
                     ),
38
                     ),
43
                   ),
39
                   ),
44
-                  Container(
45
-                    padding: EdgeInsets.fromLTRB(0, 0, 10, 0),
46
-                    child: Icon(Icons.arrow_drop_down),
47
-                  ),
48
-                  _initWidget(),
49
-                ],
50
-              ),
40
+                ),
41
+                Container(
42
+                  padding: EdgeInsets.fromLTRB(0, 0, 10, 0),
43
+                  child: Icon(Icons.arrow_drop_down),
44
+                ),
45
+                Expanded(
46
+                  flex: 1,
47
+                  child:_initWidget(),
48
+                ),
49
+              ],
51
             ),
50
             ),
52
-          ],
53
-        ),
54
-      );
51
+          );
55
     } else {
52
     } else {
56
       return _initWidget();
53
       return _initWidget();
57
     }
54
     }
65
   @override
62
   @override
66
   Widget build(BuildContext context) {
63
   Widget build(BuildContext context) {
67
     return Container(
64
     return Container(
68
-        width: 250.w,
69
         height: 32.w,
65
         height: 32.w,
70
         decoration: const BoxDecoration(color: Colors.white),
66
         decoration: const BoxDecoration(color: Colors.white),
71
         child: GestureDetector(
67
         child: GestureDetector(

+ 5
- 2
lib/pages/home/widgets/home/widgets/searchBannerHeader.dart View File

42
   Widget build(BuildContext context) {
42
   Widget build(BuildContext context) {
43
     return  Column(
43
     return  Column(
44
       children: [
44
       children: [
45
-        TypeHeader(
46
-          type: true,
45
+        SizedBox(
46
+          child:  TypeHeader(
47
+            type: true,
48
+          ),
47
         ),
49
         ),
50
+
48
         Container(
51
         Container(
49
           margin: EdgeInsets.fromLTRB(0, 15, 0, 0),
52
           margin: EdgeInsets.fromLTRB(0, 15, 0, 0),
50
           child: CarouselSlider(
53
           child: CarouselSlider(

+ 29
- 23
lib/pages/login/login.dart View File

122
           ),
122
           ),
123
         ),
123
         ),
124
         child: Container(
124
         child: Container(
125
-          child: Column(
126
-            mainAxisAlignment: MainAxisAlignment.end,
127
-            crossAxisAlignment: CrossAxisAlignment.start,
125
+          child: ListView(
126
+            // mainAxisAlignment: MainAxisAlignment.end,
127
+            // crossAxisAlignment: CrossAxisAlignment.start,
128
             children: [
128
             children: [
129
               Padding(
129
               Padding(
130
                 padding: EdgeInsets.fromLTRB(15, 0, 0, 5),
130
                 padding: EdgeInsets.fromLTRB(15, 0, 0, 5),
260
                 ),
260
                 ),
261
               ),
261
               ),
262
               Container(
262
               Container(
263
-                  padding: EdgeInsets.fromLTRB(10.0, 10, 10.0, 10),
263
+                  padding: EdgeInsets.fromLTRB(10.0, 10, 0, 10),
264
                   child: Row(
264
                   child: Row(
265
                     children: <Widget>[
265
                     children: <Widget>[
266
                       Radio<bool>(
266
                       Radio<bool>(
272
                               _newValue = value!;
272
                               _newValue = value!;
273
                             });
273
                             });
274
                           }),
274
                           }),
275
-                      RichText(
276
-                        text: TextSpan(children: <InlineSpan>[
277
-                          const TextSpan(
278
-                              text: '请认真查看',
279
-                              style: TextStyle(color: Color(0xff2a2a2a))),
280
-                          TextSpan(
281
-                            text: '文本协议/隐私政策,',
282
-                            style: TextStyle(color: Color(0xffce3800)),
283
-                            recognizer:
284
-                                TapGestureRecognizer() //踩坑。。。recognizer 是手势交互 除了我现在些的是 点击交互,其他一般都是抽象类。
285
-                                  ..onTap = () {
286
-                                    Get.toNamed('/agreement');
287
-                                  },
288
-                          ),
289
-                          const TextSpan(
290
-                              text: '确认之后选择此项',
291
-                              style: TextStyle(color: Color(0xff2a2a2a))),
292
-                        ]),
293
-                      ),
275
+                      // SizedBox(
276
+                      //   child:Text('文本协议/隐私政策',style: TextStyle(fontSize:15.sp,color: Color(0xffce3800))),
277
+                      // ),
278
+                      Text('请认真查看',style: TextStyle(fontSize:14.sp,color: Color(0xff2a2a2a))),
279
+                      Text('文本协议/隐私政策',style: TextStyle(fontSize:14.sp,color: Color(0xffce3800))),
280
+                      Text(',确认之后选择此项',style: TextStyle(fontSize:14.sp,color: Color(0xff2a2a2a))),
281
+                      // RichText(
282
+                      //   text: TextSpan(children: <InlineSpan>[
283
+                      //     const TextSpan(
284
+                      //         text: '请认真查看',
285
+                      //         style: TextStyle(color: Color(0xff2a2a2a))),
286
+                      //     TextSpan(
287
+                      //       text: '文本协议/隐私政策,',
288
+                      //       style: TextStyle(color: Color(0xffce3800)),
289
+                      //       recognizer:
290
+                      //           TapGestureRecognizer() //踩坑。。。recognizer 是手势交互 除了我现在些的是 点击交互,其他一般都是抽象类。
291
+                      //             ..onTap = () {
292
+                      //               Get.toNamed('/agreement');
293
+                      //             },
294
+                      //     ),
295
+                      //     const TextSpan(
296
+                      //         text: '确认之后选择此项',
297
+                      //         style: TextStyle(color: Color(0xff2a2a2a))),
298
+                      //   ]),
299
+                      // ),
294
                     ],
300
                     ],
295
                   )),
301
                   )),
296
             ],
302
             ],

+ 22
- 14
lib/pages/main/widgets/main/index.dart View File

25
         onCancel: () => true,
25
         onCancel: () => true,
26
         onConfirm: () => {
26
         onConfirm: () => {
27
               box.remove('token'),
27
               box.remove('token'),
28
-              Get.offNamed('/login'),
28
+              Get.offAllNamed('/login'),
29
             });
29
             });
30
   }
30
   }
31
 
31
 
40
               UserInfo(), //头部,头像手机号姓名
40
               UserInfo(), //头部,头像手机号姓名
41
               UserAddress(item: item), //用户地址
41
               UserAddress(item: item), //用户地址
42
               OtherColumn(), //功能菜单栏
42
               OtherColumn(), //功能菜单栏
43
-              Container(
44
-                height: 70.h,
45
-                margin: EdgeInsets.only(top: 0, bottom: 40.0),
46
-                alignment: Alignment.bottomCenter,
47
-                decoration: BoxDecoration(
48
-                  boxShadow: [
49
-                    BoxShadow(
50
-                      blurRadius: 10, //阴影范围
51
-                      spreadRadius: 0.1, //阴影浓度
52
-                      color: Colors.grey.withOpacity(0.2), //阴影颜色
53
-                    ),
54
-                  ],
55
-                ),
43
+              Card(
44
+                //设置圆角
45
+                shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20.0)),
46
+                // 普通的边
47
+/*          shape: Border.all(
48
+              color: Colors.yellow,
49
+              width: 5.0
50
+          ),*/
51
+                elevation: 1,// 阴影大小
52
+                // height: 70.h,
53
+                margin: EdgeInsets.only(top: 10, bottom: 40.0),
54
+                // alignment: Alignment.bottomCenter,
55
+                // decoration: BoxDecoration(
56
+                //   boxShadow: [
57
+                //     BoxShadow(
58
+                //       blurRadius: 10, //阴影范围
59
+                //       spreadRadius: 0.1, //阴影浓度
60
+                //       color: Colors.grey.withOpacity(0.2), //阴影颜色
61
+                //     ),
62
+                //   ],
63
+                // ),
56
                 child: SizedBox(
64
                 child: SizedBox(
57
                   width: 315.w,
65
                   width: 315.w,
58
                   height: 49.h,
66
                   height: 49.h,

+ 1
- 2
lib/pages/main/widgets/main/widgets/UserAddress.dart View File

64
                           ),
64
                           ),
65
                         ),
65
                         ),
66
                         Container(
66
                         Container(
67
-                          width: 260,
68
                           child: Text(
67
                           child: Text(
69
                             item != null ? item.address.toString() : '请设置详细地址!',
68
                             item != null ? item.address.toString() : '请设置详细地址!',
70
                             softWrap: true,
69
                             softWrap: true,
82
                   ),
81
                   ),
83
                   Container(
82
                   Container(
84
                     alignment: Alignment.center,
83
                     alignment: Alignment.center,
85
-                    padding: EdgeInsets.fromLTRB(0, 0, 30.w, 0),
84
+                    padding: EdgeInsets.fromLTRB(0, 0, 40.w, 0),
86
                     child: Text(
85
                     child: Text(
87
                       '>>',
86
                       '>>',
88
                       style: TextStyle(
87
                       style: TextStyle(

+ 1
- 1
lib/widgets/layout/BasicPage.dart View File

100
   @override
100
   @override
101
   Widget build(BuildContext context) {
101
   Widget build(BuildContext context) {
102
     return Scaffold(
102
     return Scaffold(
103
-      resizeToAvoidBottomInset: true,
103
+      resizeToAvoidBottomInset: false,
104
 
104
 
105
       appBar: _getAppBar(),
105
       appBar: _getAppBar(),
106
       body: SafeArea(
106
       body: SafeArea(