|
|
|
1
|
+import 'package:flutter/material.dart';
|
|
|
|
2
|
+import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart';
|
|
|
|
3
|
+import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
4
|
+import 'package:one_key/route/navigator_util.dart';
|
|
|
|
5
|
+import 'package:one_key/utils/utils.dart';
|
|
|
|
6
|
+import 'package:one_key/widgets/MyDivider.dart';
|
|
|
|
7
|
+import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
8
|
+import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
9
|
+import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
10
|
+
|
|
|
|
11
|
+import '../../../res/colors.dart';
|
|
|
|
12
|
+import '../../../utils/screen_util.dart';
|
|
|
|
13
|
+import '../../../widgets/round_button.dart';
|
|
|
|
14
|
+
|
|
|
|
15
|
+/**
|
|
|
|
16
|
+ * 订座详情---预点菜入口
|
|
|
|
17
|
+ */
|
|
|
|
18
|
+
|
|
|
|
19
|
+class OrderAdvanceHomePage extends StatefulWidget {
|
|
|
|
20
|
+ OrderAdvanceHomePage({Key key}) : super(key: key);
|
|
|
|
21
|
+
|
|
|
|
22
|
+ @override
|
|
|
|
23
|
+ _OrderAdvanceHomePageState createState() => _OrderAdvanceHomePageState();
|
|
|
|
24
|
+}
|
|
|
|
25
|
+
|
|
|
|
26
|
+class _OrderAdvanceHomePageState extends State<OrderAdvanceHomePage> {
|
|
|
|
27
|
+ TextEditingController noFoodController = TextEditingController();
|
|
|
|
28
|
+ TextEditingController likeController = TextEditingController();
|
|
|
|
29
|
+
|
|
|
|
30
|
+ TextEditingController serviceController = TextEditingController();
|
|
|
|
31
|
+
|
|
|
|
32
|
+ @override
|
|
|
|
33
|
+ void initState() {
|
|
|
|
34
|
+ super.initState();
|
|
|
|
35
|
+ }
|
|
|
|
36
|
+
|
|
|
|
37
|
+ Widget _selectItem(String title, bool select, String hintText,
|
|
|
|
38
|
+ TextEditingController controller) {
|
|
|
|
39
|
+ return Row(
|
|
|
|
40
|
+ children: [
|
|
|
|
41
|
+ HEmptyView(86),
|
|
|
|
42
|
+ Image.asset(
|
|
|
|
43
|
+ Utils.getImgPath(
|
|
|
|
44
|
+ select ? 'plan_dish_select' : 'plan_dish_unselect'),
|
|
|
|
45
|
+ width: w(20)),
|
|
|
|
46
|
+ HEmptyView(10),
|
|
|
|
47
|
+ Text(
|
|
|
|
48
|
+ title,
|
|
|
|
49
|
+ style: TextStyle(fontSize: font(16), color: MyColours.color_515151),
|
|
|
|
50
|
+ ),
|
|
|
|
51
|
+ HEmptyView(20),
|
|
|
|
52
|
+ select
|
|
|
|
53
|
+ ? Expanded(
|
|
|
|
54
|
+ child: TextField(
|
|
|
|
55
|
+ maxLines: 1,
|
|
|
|
56
|
+ controller: controller,
|
|
|
|
57
|
+ // focusNode: _focusNode,
|
|
|
|
58
|
+ // autofocus: true,
|
|
|
|
59
|
+
|
|
|
|
60
|
+ style: TextStyle(
|
|
|
|
61
|
+ color: MyColours.color_438E93, fontSize: font(14)),
|
|
|
|
62
|
+ textAlign: TextAlign.right,
|
|
|
|
63
|
+ textAlignVertical: TextAlignVertical.center,
|
|
|
|
64
|
+ decoration: InputDecoration(
|
|
|
|
65
|
+ hintText: hintText,
|
|
|
|
66
|
+ hintStyle: TextStyle(
|
|
|
|
67
|
+ color: MyColours.color_438E93,
|
|
|
|
68
|
+ fontSize: font(14),
|
|
|
|
69
|
+ ),
|
|
|
|
70
|
+ isCollapsed: true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
71
|
+ border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
72
|
+ contentPadding: EdgeInsets.zero,
|
|
|
|
73
|
+ ),
|
|
|
|
74
|
+ keyboardType: TextInputType.numberWithOptions(),
|
|
|
|
75
|
+ textInputAction: TextInputAction.done,
|
|
|
|
76
|
+
|
|
|
|
77
|
+ onChanged: (value) {
|
|
|
|
78
|
+ // setState(() {});
|
|
|
|
79
|
+ // _searchSellerLocation();
|
|
|
|
80
|
+ // customerProvider.searchData(value);
|
|
|
|
81
|
+ },
|
|
|
|
82
|
+ onEditingComplete: () {
|
|
|
|
83
|
+ FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
84
|
+ // contantShowModel.searchData(
|
|
|
|
85
|
+ // contantShowModel.controller.text);
|
|
|
|
86
|
+ // _searchSellerLocation();
|
|
|
|
87
|
+ // _focusNode.unfocus();
|
|
|
|
88
|
+ },
|
|
|
|
89
|
+ ))
|
|
|
|
90
|
+ : SizedBox(),
|
|
|
|
91
|
+ select
|
|
|
|
92
|
+ ? Text(
|
|
|
|
93
|
+ '元',
|
|
|
|
94
|
+ style: TextStyle(
|
|
|
|
95
|
+ fontSize: font(16), color: MyColours.color_515151),
|
|
|
|
96
|
+ )
|
|
|
|
97
|
+ : SizedBox(),
|
|
|
|
98
|
+ ],
|
|
|
|
99
|
+ );
|
|
|
|
100
|
+ }
|
|
|
|
101
|
+
|
|
|
|
102
|
+ ///忌口和喜好
|
|
|
|
103
|
+ Widget _textMulLine(
|
|
|
|
104
|
+ String title, String hintText, TextEditingController controller) {
|
|
|
|
105
|
+ return Container(
|
|
|
|
106
|
+ // height: ScreenUtil().setWidth(380),
|
|
|
|
107
|
+ child: Row(
|
|
|
|
108
|
+ children: [
|
|
|
|
109
|
+ Text(
|
|
|
|
110
|
+ title,
|
|
|
|
111
|
+ textAlign: TextAlign.left,
|
|
|
|
112
|
+ style: TextStyle(
|
|
|
|
113
|
+ color: MyColours.color_333333,
|
|
|
|
114
|
+ fontSize: ScreenUtil().setSp(28)),
|
|
|
|
115
|
+ ),
|
|
|
|
116
|
+ HEmptyView(54),
|
|
|
|
117
|
+ Expanded(
|
|
|
|
118
|
+ child: TextField(
|
|
|
|
119
|
+ controller: controller,
|
|
|
|
120
|
+ // keyboardType: TextInputType.number, //键盘类型,数字键盘
|
|
|
|
121
|
+ maxLines: 2,
|
|
|
|
122
|
+ // maxLength: 50,
|
|
|
|
123
|
+
|
|
|
|
124
|
+ // maxLengthEnforced: true,
|
|
|
|
125
|
+ style: TextStyle(
|
|
|
|
126
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
127
|
+ color: title == '喜好'
|
|
|
|
128
|
+ ? MyColours.color_438E93
|
|
|
|
129
|
+ : title == '忌口'
|
|
|
|
130
|
+ ? MyColours.color_E34D59
|
|
|
|
131
|
+ : MyColours.color_333333), //输入文本的样式
|
|
|
|
132
|
+ decoration: InputDecoration(
|
|
|
|
133
|
+ contentPadding:
|
|
|
|
134
|
+ EdgeInsets.symmetric(horizontal: w(11), vertical: w(8)),
|
|
|
|
135
|
+ hintText: hintText,
|
|
|
|
136
|
+ hintStyle: TextStyle(
|
|
|
|
137
|
+ color: MyColours.color_999999,
|
|
|
|
138
|
+ fontSize: ScreenUtil().setSp(28),
|
|
|
|
139
|
+ ),
|
|
|
|
140
|
+ // fillColor: MyColours.color_F9F9F9,
|
|
|
|
141
|
+ // fillColor: Colors.red,
|
|
|
|
142
|
+ // filled: true,
|
|
|
|
143
|
+ enabledBorder: OutlineInputBorder(
|
|
|
|
144
|
+ //未选中时候的颜色
|
|
|
|
145
|
+ borderRadius: BorderRadius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
146
|
+ borderSide: BorderSide(
|
|
|
|
147
|
+ color: MyColours.color_cccccc,
|
|
|
|
148
|
+ width: ScreenUtil().setWidth(2)),
|
|
|
|
149
|
+ ),
|
|
|
|
150
|
+ focusedBorder: OutlineInputBorder(
|
|
|
|
151
|
+ //选中时外边框颜色
|
|
|
|
152
|
+ borderRadius: BorderRadius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
153
|
+ borderSide: BorderSide(
|
|
|
|
154
|
+ color: MyColours.app_main,
|
|
|
|
155
|
+ ),
|
|
|
|
156
|
+ ),
|
|
|
|
157
|
+ // border: OutlineInputBorder(
|
|
|
|
158
|
+ // borderRadius:
|
|
|
|
159
|
+ // BorderRadius.circular(ScreenUtil().setWidth(20)),
|
|
|
|
160
|
+ // borderSide: BorderSide(
|
|
|
|
161
|
+ // color: Colors.red, width: ScreenUtil().setWidth(2))),
|
|
|
|
162
|
+ ),
|
|
|
|
163
|
+ onChanged: (value) {},
|
|
|
|
164
|
+ )),
|
|
|
|
165
|
+ ],
|
|
|
|
166
|
+ ),
|
|
|
|
167
|
+ );
|
|
|
|
168
|
+ }
|
|
|
|
169
|
+
|
|
|
|
170
|
+ /// 查看排菜单,分享排菜单按钮
|
|
|
|
171
|
+ Widget _cancelAndChangeBtn(GestureTapCallback onTap, String title,
|
|
|
|
172
|
+ {Color bgColor = MyColours.color_ffffff,
|
|
|
|
173
|
+ double width,
|
|
|
|
174
|
+ Color fontColor = MyColours.color_199095}) {
|
|
|
|
175
|
+ return InkWell(
|
|
|
|
176
|
+ onTap: onTap,
|
|
|
|
177
|
+ child: Container(
|
|
|
|
178
|
+ width: width,
|
|
|
|
179
|
+ decoration: BoxDecoration(
|
|
|
|
180
|
+ color: bgColor,
|
|
|
|
181
|
+ border: Border.all(
|
|
|
|
182
|
+ color: Colors.transparent, width: ScreenUtil().setWidth(2)),
|
|
|
|
183
|
+ borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
184
|
+ ),
|
|
|
|
185
|
+ child: Align(
|
|
|
|
186
|
+ alignment: Alignment.center,
|
|
|
|
187
|
+ child: Text(title,
|
|
|
|
188
|
+ style: TextStyle(
|
|
|
|
189
|
+ color: fontColor,
|
|
|
|
190
|
+ fontSize: title == '查看排菜单'
|
|
|
|
191
|
+ ? ScreenUtil().setSp(32)
|
|
|
|
192
|
+ : ScreenUtil().setSp(36))),
|
|
|
|
193
|
+ ),
|
|
|
|
194
|
+ ),
|
|
|
|
195
|
+ );
|
|
|
|
196
|
+ }
|
|
|
|
197
|
+
|
|
|
|
198
|
+ @override
|
|
|
|
199
|
+ Widget build(BuildContext context) {
|
|
|
|
200
|
+ return KeyboardDismissOnTap(
|
|
|
|
201
|
+ // dismissOnCapturedTaps: true,
|
|
|
|
202
|
+ child: Scaffold(
|
|
|
|
203
|
+ appBar: SystemAppBar('预点菜'),
|
|
|
|
204
|
+ backgroundColor: MyColours.color_ffffff,
|
|
|
|
205
|
+ body: Column(
|
|
|
|
206
|
+ children: [
|
|
|
|
207
|
+ Expanded(
|
|
|
|
208
|
+ child: SingleChildScrollView(
|
|
|
|
209
|
+ // controller: controller,
|
|
|
|
210
|
+ child: Padding(
|
|
|
|
211
|
+ padding: EdgeInsets.symmetric(horizontal: w(20)),
|
|
|
|
212
|
+ child: Column(
|
|
|
|
213
|
+ crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
214
|
+ children: [
|
|
|
|
215
|
+ Container(
|
|
|
|
216
|
+ height: w(48),
|
|
|
|
217
|
+ child: Row(
|
|
|
|
218
|
+ children: [
|
|
|
|
219
|
+ Text(
|
|
|
|
220
|
+ '就餐时段',
|
|
|
|
221
|
+ style: TextStyle(
|
|
|
|
222
|
+ fontSize: font(16),
|
|
|
|
223
|
+ color: MyColours.color_515151),
|
|
|
|
224
|
+ ),
|
|
|
|
225
|
+ Spacer(),
|
|
|
|
226
|
+ Text(
|
|
|
|
227
|
+ '2022-11-08 午餐',
|
|
|
|
228
|
+ style: TextStyle(
|
|
|
|
229
|
+ fontSize: font(16),
|
|
|
|
230
|
+ color: MyColours.color_99515151),
|
|
|
|
231
|
+ ),
|
|
|
|
232
|
+ ],
|
|
|
|
233
|
+ ),
|
|
|
|
234
|
+ ),
|
|
|
|
235
|
+ MyDivider(
|
|
|
|
236
|
+ double.infinity,
|
|
|
|
237
|
+ w(1),
|
|
|
|
238
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
239
|
+ ),
|
|
|
|
240
|
+ Container(
|
|
|
|
241
|
+ height: w(48),
|
|
|
|
242
|
+ child: Row(
|
|
|
|
243
|
+ children: [
|
|
|
|
244
|
+ Text(
|
|
|
|
245
|
+ '就餐人数',
|
|
|
|
246
|
+ style: TextStyle(
|
|
|
|
247
|
+ fontSize: font(16),
|
|
|
|
248
|
+ color: MyColours.color_515151),
|
|
|
|
249
|
+ ),
|
|
|
|
250
|
+ Spacer(),
|
|
|
|
251
|
+ Image.asset(
|
|
|
|
252
|
+ Utils.getImgPath('plan_dish_minus'),
|
|
|
|
253
|
+ width: w(16),
|
|
|
|
254
|
+ ),
|
|
|
|
255
|
+ Container(
|
|
|
|
256
|
+ width: w(50),
|
|
|
|
257
|
+ // constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
258
|
+ child: TextField(
|
|
|
|
259
|
+ maxLines: 1,
|
|
|
|
260
|
+ // controller:
|
|
|
|
261
|
+ // focusNode: _focusNode,
|
|
|
|
262
|
+ // autofocus: true,
|
|
|
|
263
|
+
|
|
|
|
264
|
+ style: TextStyle(
|
|
|
|
265
|
+ color: MyColours.color_438E93,
|
|
|
|
266
|
+ fontSize: font(16)),
|
|
|
|
267
|
+ textAlign: TextAlign.center,
|
|
|
|
268
|
+ // textAlignVertical: TextAlignVertical.center,
|
|
|
|
269
|
+ decoration: InputDecoration(
|
|
|
|
270
|
+ hintText: "人数",
|
|
|
|
271
|
+ hintStyle: TextStyle(
|
|
|
|
272
|
+ color: MyColours.color_999999,
|
|
|
|
273
|
+ fontSize: font(16),
|
|
|
|
274
|
+ ),
|
|
|
|
275
|
+ // isCollapsed:
|
|
|
|
276
|
+ // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
277
|
+ border: OutlineInputBorder(
|
|
|
|
278
|
+ borderSide: BorderSide.none),
|
|
|
|
279
|
+ contentPadding: EdgeInsets.zero,
|
|
|
|
280
|
+ ),
|
|
|
|
281
|
+ keyboardType: TextInputType.number,
|
|
|
|
282
|
+ textInputAction: TextInputAction.done,
|
|
|
|
283
|
+
|
|
|
|
284
|
+ onChanged: (value) {
|
|
|
|
285
|
+ // setState(() {});
|
|
|
|
286
|
+ // _searchSellerLocation();
|
|
|
|
287
|
+ // customerProvider.searchData(value);
|
|
|
|
288
|
+ },
|
|
|
|
289
|
+ onEditingComplete: () {
|
|
|
|
290
|
+ FocusScope.of(context)
|
|
|
|
291
|
+ .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
292
|
+ // contantShowModel.searchData(
|
|
|
|
293
|
+ // contantShowModel.controller.text);
|
|
|
|
294
|
+ // _searchSellerLocation();
|
|
|
|
295
|
+ // _focusNode.unfocus();
|
|
|
|
296
|
+ },
|
|
|
|
297
|
+ )),
|
|
|
|
298
|
+ Image.asset(
|
|
|
|
299
|
+ Utils.getImgPath('plan_dish_add'),
|
|
|
|
300
|
+ width: w(16),
|
|
|
|
301
|
+ ),
|
|
|
|
302
|
+ ],
|
|
|
|
303
|
+ ),
|
|
|
|
304
|
+ ),
|
|
|
|
305
|
+ VEmptyView(24),
|
|
|
|
306
|
+ Text(
|
|
|
|
307
|
+ '用餐标准',
|
|
|
|
308
|
+ style: TextStyle(
|
|
|
|
309
|
+ fontSize: font(16), color: MyColours.color_515151),
|
|
|
|
310
|
+ ),
|
|
|
|
311
|
+ VEmptyView(48),
|
|
|
|
312
|
+ _selectItem('预计人均', false, '点击这里输入预计人均金额', null),
|
|
|
|
313
|
+ VEmptyView(30),
|
|
|
|
314
|
+ _selectItem('预计总价', true, '点击这里输入预计总金额', null),
|
|
|
|
315
|
+ VEmptyView(46),
|
|
|
|
316
|
+ MyDivider(
|
|
|
|
317
|
+ double.infinity,
|
|
|
|
318
|
+ w(1),
|
|
|
|
319
|
+ color: MyColours.color_DBDBDB,
|
|
|
|
320
|
+ ),
|
|
|
|
321
|
+ Container(
|
|
|
|
322
|
+ padding: EdgeInsets.symmetric(vertical: w(10)),
|
|
|
|
323
|
+ child: Row(
|
|
|
|
324
|
+ mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
325
|
+ children: [
|
|
|
|
326
|
+ Text(
|
|
|
|
327
|
+ '客户偏好参考',
|
|
|
|
328
|
+ style: TextStyle(
|
|
|
|
329
|
+ fontSize: font(16),
|
|
|
|
330
|
+ color: MyColours.color_515151),
|
|
|
|
331
|
+ ),
|
|
|
|
332
|
+ Image.asset(
|
|
|
|
333
|
+ Utils.getImgPath('merge_arrow'),
|
|
|
|
334
|
+ width: w(20),
|
|
|
|
335
|
+ )
|
|
|
|
336
|
+ ],
|
|
|
|
337
|
+ ),
|
|
|
|
338
|
+ ),
|
|
|
|
339
|
+ VEmptyView(32),
|
|
|
|
340
|
+ _textMulLine('喜好', '点这里输入客户喜好的东西,请用逗号隔开。', likeController),
|
|
|
|
341
|
+ VEmptyView(20),
|
|
|
|
342
|
+ _textMulLine('忌口', '点这里输入客户忌口的东西,请用逗号隔开。', noFoodController),
|
|
|
|
343
|
+ VEmptyView(20),
|
|
|
|
344
|
+ _textMulLine('服务', '点这里输入客户需要的服务,如安静的包间、远离厕所等,请用逗号隔开。', serviceController),
|
|
|
|
345
|
+ ],
|
|
|
|
346
|
+ ),
|
|
|
|
347
|
+ ),
|
|
|
|
348
|
+ ),
|
|
|
|
349
|
+ ),
|
|
|
|
350
|
+ Column(children: [
|
|
|
|
351
|
+ Container(
|
|
|
|
352
|
+ // width: double.infinity,
|
|
|
|
353
|
+ height: ScreenUtil().setWidth(84),
|
|
|
|
354
|
+ decoration: BoxDecoration(
|
|
|
|
355
|
+ color: MyColours.color_ffffff,
|
|
|
|
356
|
+ borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
357
|
+ ),
|
|
|
|
358
|
+ margin: EdgeInsets.symmetric(
|
|
|
|
359
|
+ vertical: ScreenUtil().setHeight(20),
|
|
|
|
360
|
+ horizontal: ScreenUtil().setHeight(40)),
|
|
|
|
361
|
+ child: Row(
|
|
|
|
362
|
+ children: [
|
|
|
|
363
|
+ Expanded(
|
|
|
|
364
|
+ flex: 1,
|
|
|
|
365
|
+ child: InkWell(
|
|
|
|
366
|
+ onTap: () {
|
|
|
|
367
|
+ // NavigatorUtil
|
|
|
|
368
|
+ // .goOrderAdvanceHomePage(
|
|
|
|
369
|
+ // context,
|
|
|
|
370
|
+ // );
|
|
|
|
371
|
+ },
|
|
|
|
372
|
+ child: Container(
|
|
|
|
373
|
+ margin:
|
|
|
|
374
|
+ EdgeInsets.only(right: ScreenUtil().setWidth(20)),
|
|
|
|
375
|
+ decoration: BoxDecoration(
|
|
|
|
376
|
+ color: MyColours.color_ffffff,
|
|
|
|
377
|
+ border: Border.all(
|
|
|
|
378
|
+ width: w(1), color: MyColours.color_438E93),
|
|
|
|
379
|
+ borderRadius: BorderRadius.circular(
|
|
|
|
380
|
+ ScreenUtil().setWidth(10)),
|
|
|
|
381
|
+ ),
|
|
|
|
382
|
+ child: Align(
|
|
|
|
383
|
+ alignment: Alignment.center,
|
|
|
|
384
|
+ child: Text('客户自己点',
|
|
|
|
385
|
+ style: TextStyle(
|
|
|
|
386
|
+ color: MyColours.color_438E93,
|
|
|
|
387
|
+ fontSize: ScreenUtil().setSp(32))),
|
|
|
|
388
|
+ ),
|
|
|
|
389
|
+ ),
|
|
|
|
390
|
+ )),
|
|
|
|
391
|
+ Expanded(
|
|
|
|
392
|
+ flex: 2,
|
|
|
|
393
|
+ child: InkWell(
|
|
|
|
394
|
+ onTap: () {
|
|
|
|
395
|
+ // NavigatorUtil
|
|
|
|
396
|
+ // .goInvicationPage(
|
|
|
|
397
|
+ // context,
|
|
|
|
398
|
+ // detailEntity.id,
|
|
|
|
399
|
+ // );
|
|
|
|
400
|
+ },
|
|
|
|
401
|
+ child: Container(
|
|
|
|
402
|
+ decoration: BoxDecoration(
|
|
|
|
403
|
+ color: MyColours.color_199095,
|
|
|
|
404
|
+ borderRadius: BorderRadius.circular(
|
|
|
|
405
|
+ ScreenUtil().setWidth(10)),
|
|
|
|
406
|
+ ),
|
|
|
|
407
|
+ child: Align(
|
|
|
|
408
|
+ alignment: Alignment.center,
|
|
|
|
409
|
+ child: Text('经理排菜',
|
|
|
|
410
|
+ style: TextStyle(
|
|
|
|
411
|
+ color: MyColours.color_ffffff,
|
|
|
|
412
|
+ fontSize: ScreenUtil().setSp(36))),
|
|
|
|
413
|
+ ),
|
|
|
|
414
|
+ ),
|
|
|
|
415
|
+ )),
|
|
|
|
416
|
+ ],
|
|
|
|
417
|
+ ),
|
|
|
|
418
|
+ ),
|
|
|
|
419
|
+ Container(
|
|
|
|
420
|
+ width: double.infinity,
|
|
|
|
421
|
+ height: ScreenUtil().setWidth(84),
|
|
|
|
422
|
+ margin:
|
|
|
|
423
|
+ EdgeInsets.symmetric(horizontal: ScreenUtil().setHeight(40)),
|
|
|
|
424
|
+ decoration: BoxDecoration(
|
|
|
|
425
|
+ border: Border.all(
|
|
|
|
426
|
+ color:
|
|
|
|
427
|
+ true ? MyColours.color_999999 : MyColours.color_199095,
|
|
|
|
428
|
+ width: ScreenUtil().setWidth(2)),
|
|
|
|
429
|
+ borderRadius: BorderRadius.circular(ScreenUtil().setWidth(10)),
|
|
|
|
430
|
+ ),
|
|
|
|
431
|
+ // child: Text('fff'),
|
|
|
|
432
|
+ child: Material(
|
|
|
|
433
|
+ color: Colors.transparent,
|
|
|
|
434
|
+ child: Row(
|
|
|
|
435
|
+ children: [
|
|
|
|
436
|
+ Expanded(
|
|
|
|
437
|
+ child: _cancelAndChangeBtn(() {}, '查看排菜单',
|
|
|
|
438
|
+ fontColor: true
|
|
|
|
439
|
+ ? MyColours.color_999999
|
|
|
|
440
|
+ : MyColours.color_199095)),
|
|
|
|
441
|
+ MyDivider(
|
|
|
|
442
|
+ ScreenUtil().setWidth(2),
|
|
|
|
443
|
+ ScreenUtil().setWidth(50),
|
|
|
|
444
|
+ color: true
|
|
|
|
445
|
+ ? MyColours.color_999999
|
|
|
|
446
|
+ : MyColours.color_199095,
|
|
|
|
447
|
+ ),
|
|
|
|
448
|
+ Expanded(
|
|
|
|
449
|
+ child: _cancelAndChangeBtn(() {
|
|
|
|
450
|
+ // if (userModel.user.role_name != '管理员' &&
|
|
|
|
451
|
+ // userModel.user.role_name != '店长' &&
|
|
|
|
452
|
+ // widget.uid != "null" &&
|
|
|
|
453
|
+ // widget.uid !=
|
|
|
|
454
|
+ // userModel.user.openid) {
|
|
|
|
455
|
+ // } else {
|
|
|
|
456
|
+ // _showCancelWidget(context);
|
|
|
|
457
|
+ // }
|
|
|
|
458
|
+ }, '分享排菜单',
|
|
|
|
459
|
+ fontColor: true
|
|
|
|
460
|
+ ? MyColours.color_999999
|
|
|
|
461
|
+ : MyColours.color_199095)),
|
|
|
|
462
|
+ ],
|
|
|
|
463
|
+ )),
|
|
|
|
464
|
+ ),
|
|
|
|
465
|
+ VEmptyView(ScreenUtil().setWidth(60))
|
|
|
|
466
|
+ ])
|
|
|
|
467
|
+ ],
|
|
|
|
468
|
+ ),
|
|
|
|
469
|
+ ));
|
|
|
|
470
|
+ }
|
|
|
|
471
|
+} |