|
@@ -8,10 +8,13 @@ import '../../../widgets/MyDivider.dart'; |
|
@@ -8,10 +8,13 @@ import '../../../widgets/MyDivider.dart'; |
|
8
|
import '../../../widgets/h_empty_view.dart';
|
8
|
import '../../../widgets/h_empty_view.dart';
|
|
9
|
import '../../../widgets/round_button.dart';
|
9
|
import '../../../widgets/round_button.dart';
|
|
10
|
import '../../../widgets/v_empty_view.dart';
|
10
|
import '../../../widgets/v_empty_view.dart';
|
|
|
|
11
|
+import '../../models/cookbook_model.dart';
|
|
|
|
12
|
+import '../../provider/plan_dish_provider.dart';
|
|
11
|
import '../../route/navigator_util.dart';
|
13
|
import '../../route/navigator_util.dart';
|
|
12
|
|
14
|
|
|
13
|
class OrderEditListShowPage extends StatefulWidget {
|
15
|
class OrderEditListShowPage extends StatefulWidget {
|
|
14
|
- OrderEditListShowPage({Key key}) : super(key: key);
|
16
|
+ final List<MenuModel> data;
|
|
|
|
17
|
+ OrderEditListShowPage({Key key, this.data}) : super(key: key);
|
|
15
|
|
18
|
|
|
16
|
@override
|
19
|
@override
|
|
17
|
_OrderEditListShowPageState createState() => _OrderEditListShowPageState();
|
20
|
_OrderEditListShowPageState createState() => _OrderEditListShowPageState();
|
|
@@ -19,6 +22,9 @@ class OrderEditListShowPage extends StatefulWidget { |
|
@@ -19,6 +22,9 @@ class OrderEditListShowPage extends StatefulWidget { |
|
19
|
|
22
|
|
|
20
|
class _OrderEditListShowPageState extends State<OrderEditListShowPage> {
|
23
|
class _OrderEditListShowPageState extends State<OrderEditListShowPage> {
|
|
21
|
ScrollController controller = ScrollController();
|
24
|
ScrollController controller = ScrollController();
|
|
|
|
25
|
+ List<MenuSunModel> dataLocalShowMore = []; //二级菜单
|
|
|
|
26
|
+ List<MenuModel> dataLocalShowOne = []; //一级菜单
|
|
|
|
27
|
+
|
|
22
|
Widget _laduWidget() {
|
28
|
Widget _laduWidget() {
|
|
23
|
// if (labelIcon[widget
|
29
|
// if (labelIcon[widget
|
|
24
|
// .cookBookList.labelList[index].icon] is int) {
|
30
|
// .cookBookList.labelList[index].icon] is int) {
|
|
@@ -42,6 +48,62 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -42,6 +48,62 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
42
|
}
|
48
|
}
|
|
43
|
|
49
|
|
|
44
|
@override
|
50
|
@override
|
|
|
|
51
|
+ void initState() {
|
|
|
|
52
|
+ super.initState();
|
|
|
|
53
|
+ dataLocalShowMore = []; //二级菜单
|
|
|
|
54
|
+ dataLocalShowOne = []; //一级菜单
|
|
|
|
55
|
+
|
|
|
|
56
|
+ if (widget.data != null) {
|
|
|
|
57
|
+ widget.data.forEach((element) {
|
|
|
|
58
|
+ if (element.className == '套餐' || element.className == '我的排菜') {
|
|
|
|
59
|
+ //如果是套餐,则看cooklist有没有选中的
|
|
|
|
60
|
+ element.cookbooklist.forEach((value) {
|
|
|
|
61
|
+ if (value.amount > 0) {
|
|
|
|
62
|
+ dataLocalShowMore.add(value);
|
|
|
|
63
|
+ }
|
|
|
|
64
|
+ });
|
|
|
|
65
|
+ } else if (element.className == '店内常点') {
|
|
|
|
66
|
+ // //如果是我的排菜,则看cooklist有没有选中的
|
|
|
|
67
|
+
|
|
|
|
68
|
+ // bool hasmMine =
|
|
|
|
69
|
+ // element.cookbooklist.any(((value) => value.amount > 0));
|
|
|
|
70
|
+ // if (hasmMine) {
|
|
|
|
71
|
+ // //套餐中有被选中
|
|
|
|
72
|
+ // maxIndex++;
|
|
|
|
73
|
+ // }
|
|
|
|
74
|
+ } else if (element.className == '临时加菜') {
|
|
|
|
75
|
+ } else {
|
|
|
|
76
|
+ //单菜
|
|
|
|
77
|
+ bool hasmMenu =
|
|
|
|
78
|
+ element.cookbooklist.any(((value) => value.amount > 0));
|
|
|
|
79
|
+ if (hasmMenu) {
|
|
|
|
80
|
+ //单品此类有选中菜品
|
|
|
|
81
|
+ MenuModel menuModel = MenuModel();
|
|
|
|
82
|
+ menuModel.className = element.className;
|
|
|
|
83
|
+ menuModel.classLabel = element.classLabel;
|
|
|
|
84
|
+ menuModel.classType = element.classType;
|
|
|
|
85
|
+ menuModel.id = element.id;
|
|
|
|
86
|
+ menuModel.order = element.order;
|
|
|
|
87
|
+ menuModel.sellerid = element.sellerid;
|
|
|
|
88
|
+ menuModel.status = element.status;
|
|
|
|
89
|
+ menuModel.cookbooklist = [];
|
|
|
|
90
|
+ List<MenuSunModel> cookbooklist = [];
|
|
|
|
91
|
+ element.cookbooklist.forEach((value) {
|
|
|
|
92
|
+ if (value.amount > 0) {
|
|
|
|
93
|
+ cookbooklist.add(value);
|
|
|
|
94
|
+ }
|
|
|
|
95
|
+ });
|
|
|
|
96
|
+ menuModel.cookbooklist.addAll(cookbooklist);
|
|
|
|
97
|
+ dataLocalShowOne.add(menuModel);
|
|
|
|
98
|
+ }
|
|
|
|
99
|
+ }
|
|
|
|
100
|
+ });
|
|
|
|
101
|
+ }
|
|
|
|
102
|
+ print(dataLocalShowMore);
|
|
|
|
103
|
+ print(dataLocalShowOne);
|
|
|
|
104
|
+ }
|
|
|
|
105
|
+
|
|
|
|
106
|
+ @override
|
|
45
|
Widget build(BuildContext context) {
|
107
|
Widget build(BuildContext context) {
|
|
46
|
return Scaffold(
|
108
|
return Scaffold(
|
|
47
|
appBar: SystemAppBar('排菜单'),
|
109
|
appBar: SystemAppBar('排菜单'),
|
|
@@ -121,12 +183,282 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -121,12 +183,282 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
121
|
],
|
183
|
],
|
|
122
|
)),
|
184
|
)),
|
|
123
|
ListView.builder(
|
185
|
ListView.builder(
|
|
124
|
- itemCount: 20,
|
186
|
+ controller: controller,
|
|
|
|
187
|
+ itemCount: dataLocalShowMore.length,
|
|
|
|
188
|
+ shrinkWrap: true,
|
|
|
|
189
|
+ itemBuilder: (context, index) {
|
|
|
|
190
|
+ MenuSunModel menuSunModel =
|
|
|
|
191
|
+ dataLocalShowMore[index];
|
|
|
|
192
|
+ return ListView.builder(
|
|
|
|
193
|
+ itemCount: 2,
|
|
|
|
194
|
+ controller: controller,
|
|
|
|
195
|
+ shrinkWrap: true,
|
|
|
|
196
|
+ itemBuilder: (context, index) {
|
|
|
|
197
|
+ if (index == 0) {
|
|
|
|
198
|
+ return Column(
|
|
|
|
199
|
+ children: [
|
|
|
|
200
|
+ //头
|
|
|
|
201
|
+ Container(
|
|
|
|
202
|
+ width: double.infinity,
|
|
|
|
203
|
+ // width: w(32),
|
|
|
|
204
|
+ height: w(48),
|
|
|
|
205
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
206
|
+ horizontal: w(10)),
|
|
|
|
207
|
+ decoration: BoxDecoration(
|
|
|
|
208
|
+ border: Border(
|
|
|
|
209
|
+ bottom: BorderSide(
|
|
|
|
210
|
+ width: w(1),
|
|
|
|
211
|
+ color: MyColours
|
|
|
|
212
|
+ .color_DBDBDB))),
|
|
|
|
213
|
+ // constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
214
|
+ child: Row(
|
|
|
|
215
|
+ mainAxisAlignment:
|
|
|
|
216
|
+ MainAxisAlignment
|
|
|
|
217
|
+ .spaceBetween,
|
|
|
|
218
|
+ children: [
|
|
|
|
219
|
+ Text(
|
|
|
|
220
|
+ menuSunModel.name,
|
|
|
|
221
|
+ style: TextStyle(
|
|
|
|
222
|
+ fontSize: font(16),
|
|
|
|
223
|
+ color: MyColours
|
|
|
|
224
|
+ .color_515151,
|
|
|
|
225
|
+ fontWeight:
|
|
|
|
226
|
+ FontWeight.bold),
|
|
|
|
227
|
+ ),
|
|
|
|
228
|
+ Text(
|
|
|
|
229
|
+ '6道',
|
|
|
|
230
|
+ style: TextStyle(
|
|
|
|
231
|
+ fontSize: font(14),
|
|
|
|
232
|
+ color:
|
|
|
|
233
|
+ MyColours.color_515151,
|
|
|
|
234
|
+ ),
|
|
|
|
235
|
+ ),
|
|
|
|
236
|
+ ],
|
|
|
|
237
|
+ ))
|
|
|
|
238
|
+ ],
|
|
|
|
239
|
+ );
|
|
|
|
240
|
+ }
|
|
|
|
241
|
+
|
|
|
|
242
|
+ return ListView.builder(
|
|
|
|
243
|
+ itemCount: menuSunModel.cookList.length,
|
|
|
|
244
|
+ shrinkWrap: true,
|
|
|
|
245
|
+ controller: controller,
|
|
|
|
246
|
+ itemBuilder: (context, index) {
|
|
|
|
247
|
+ MenuModel menuModel =
|
|
|
|
248
|
+ menuSunModel.cookList[index];
|
|
|
|
249
|
+ return ListView.builder(
|
|
|
|
250
|
+ itemCount:
|
|
|
|
251
|
+ menuModel.cookbooklist.length +
|
|
|
|
252
|
+ 1,
|
|
|
|
253
|
+ shrinkWrap: true,
|
|
|
|
254
|
+ controller: controller,
|
|
|
|
255
|
+ itemBuilder: (context, index) {
|
|
|
|
256
|
+ if (index == 0) {
|
|
|
|
257
|
+ return Column(
|
|
|
|
258
|
+ children: [
|
|
|
|
259
|
+ //头
|
|
|
|
260
|
+ Container(
|
|
|
|
261
|
+ width: double.infinity,
|
|
|
|
262
|
+ // width: w(32),
|
|
|
|
263
|
+ height: w(48),
|
|
|
|
264
|
+ padding: EdgeInsets
|
|
|
|
265
|
+ .symmetric(
|
|
|
|
266
|
+ horizontal:
|
|
|
|
267
|
+ w(10)),
|
|
|
|
268
|
+ decoration: BoxDecoration(
|
|
|
|
269
|
+ border: Border(
|
|
|
|
270
|
+ bottom: BorderSide(
|
|
|
|
271
|
+ width: w(1),
|
|
|
|
272
|
+ color: MyColours
|
|
|
|
273
|
+ .color_DBDBDB))),
|
|
|
|
274
|
+ // constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
275
|
+ child: Row(
|
|
|
|
276
|
+ mainAxisAlignment:
|
|
|
|
277
|
+ MainAxisAlignment
|
|
|
|
278
|
+ .spaceBetween,
|
|
|
|
279
|
+ children: [
|
|
|
|
280
|
+ Text(
|
|
|
|
281
|
+ menuModel
|
|
|
|
282
|
+ .className,
|
|
|
|
283
|
+ style: TextStyle(
|
|
|
|
284
|
+ fontSize:
|
|
|
|
285
|
+ font(16),
|
|
|
|
286
|
+ color: MyColours
|
|
|
|
287
|
+ .color_515151,
|
|
|
|
288
|
+ fontWeight:
|
|
|
|
289
|
+ FontWeight
|
|
|
|
290
|
+ .bold),
|
|
|
|
291
|
+ ),
|
|
|
|
292
|
+ Text(
|
|
|
|
293
|
+ '6道',
|
|
|
|
294
|
+ style: TextStyle(
|
|
|
|
295
|
+ fontSize:
|
|
|
|
296
|
+ font(14),
|
|
|
|
297
|
+ color: MyColours
|
|
|
|
298
|
+ .color_515151,
|
|
|
|
299
|
+ ),
|
|
|
|
300
|
+ ),
|
|
|
|
301
|
+ ],
|
|
|
|
302
|
+ ))
|
|
|
|
303
|
+ ],
|
|
|
|
304
|
+ );
|
|
|
|
305
|
+ }
|
|
|
|
306
|
+ int indexReal = index - 1;
|
|
|
|
307
|
+ MenuSunModel menuSunModel =
|
|
|
|
308
|
+ menuModel
|
|
|
|
309
|
+ .cookbooklist[indexReal];
|
|
|
|
310
|
+ return Container(
|
|
|
|
311
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
312
|
+ horizontal: w(20),
|
|
|
|
313
|
+ vertical: w(13)),
|
|
|
|
314
|
+ decoration: BoxDecoration(
|
|
|
|
315
|
+ border: Border(
|
|
|
|
316
|
+ bottom: BorderSide(
|
|
|
|
317
|
+ width: w(1),
|
|
|
|
318
|
+ color: MyColours
|
|
|
|
319
|
+ .color_DBDBDB))),
|
|
|
|
320
|
+ child: Row(
|
|
|
|
321
|
+ children: [
|
|
|
|
322
|
+ Container(
|
|
|
|
323
|
+ constraints:
|
|
|
|
324
|
+ BoxConstraints(
|
|
|
|
325
|
+ maxWidth:
|
|
|
|
326
|
+ w(80)),
|
|
|
|
327
|
+ child: Text(
|
|
|
|
328
|
+ menuSunModel.name,
|
|
|
|
329
|
+ maxLines: 10,
|
|
|
|
330
|
+ overflow: TextOverflow
|
|
|
|
331
|
+ .ellipsis,
|
|
|
|
332
|
+ style: TextStyle(
|
|
|
|
333
|
+ fontSize:
|
|
|
|
334
|
+ font(14),
|
|
|
|
335
|
+ color: MyColours
|
|
|
|
336
|
+ .color_515151),
|
|
|
|
337
|
+ )),
|
|
|
|
338
|
+ // HEmptyView(8),
|
|
|
|
339
|
+ // _laduWidget(),
|
|
|
|
340
|
+ Spacer(),
|
|
|
|
341
|
+ Text(
|
|
|
|
342
|
+ '${menuSunModel.price}元/${menuSunModel.unit}',
|
|
|
|
343
|
+ maxLines: 2,
|
|
|
|
344
|
+ overflow:
|
|
|
|
345
|
+ TextOverflow.ellipsis,
|
|
|
|
346
|
+ style: TextStyle(
|
|
|
|
347
|
+ fontSize: font(12),
|
|
|
|
348
|
+ color: MyColours
|
|
|
|
349
|
+ .color_999999),
|
|
|
|
350
|
+ ),
|
|
|
|
351
|
+ HEmptyView(28),
|
|
|
|
352
|
+ Text(
|
|
|
|
353
|
+ '${menuSunModel.member_price}元/${menuSunModel.unit}',
|
|
|
|
354
|
+ maxLines: 2,
|
|
|
|
355
|
+ overflow:
|
|
|
|
356
|
+ TextOverflow.ellipsis,
|
|
|
|
357
|
+ style: TextStyle(
|
|
|
|
358
|
+ fontSize: font(10),
|
|
|
|
359
|
+ color: MyColours
|
|
|
|
360
|
+ .color_8EBBBE),
|
|
|
|
361
|
+ ),
|
|
|
|
362
|
+ HEmptyView(20),
|
|
|
|
363
|
+ Image.asset(
|
|
|
|
364
|
+ Utils.getImgPath(
|
|
|
|
365
|
+ 'plan_dish_minus'),
|
|
|
|
366
|
+ width: w(16),
|
|
|
|
367
|
+ ),
|
|
|
|
368
|
+ HEmptyView(8),
|
|
|
|
369
|
+ Container(
|
|
|
|
370
|
+ width: w(32),
|
|
|
|
371
|
+ height: w(16),
|
|
|
|
372
|
+ decoration: BoxDecoration(
|
|
|
|
373
|
+ borderRadius:
|
|
|
|
374
|
+ BorderRadius
|
|
|
|
375
|
+ .circular(
|
|
|
|
376
|
+ r(5)),
|
|
|
|
377
|
+ border: Border.all(
|
|
|
|
378
|
+ width: w(1),
|
|
|
|
379
|
+ color: MyColours
|
|
|
|
380
|
+ .color_999999)),
|
|
|
|
381
|
+ // constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
382
|
+ child: TextField(
|
|
|
|
383
|
+ maxLines: 1,
|
|
|
|
384
|
+ controller:
|
|
|
|
385
|
+ menuSunModel
|
|
|
|
386
|
+ .amountC,
|
|
|
|
387
|
+ // focusNode: _focusNode,
|
|
|
|
388
|
+ // autofocus: true,
|
|
|
|
389
|
+
|
|
|
|
390
|
+ style: TextStyle(
|
|
|
|
391
|
+ color: MyColours
|
|
|
|
392
|
+ .color_438E93,
|
|
|
|
393
|
+ fontSize:
|
|
|
|
394
|
+ font(12)),
|
|
|
|
395
|
+ textAlign:
|
|
|
|
396
|
+ TextAlign.center,
|
|
|
|
397
|
+ // textAlignVertical: TextAlignVertical.center,
|
|
|
|
398
|
+ decoration:
|
|
|
|
399
|
+ InputDecoration(
|
|
|
|
400
|
+ hintText: "数量",
|
|
|
|
401
|
+ hintStyle:
|
|
|
|
402
|
+ TextStyle(
|
|
|
|
403
|
+ color: MyColours
|
|
|
|
404
|
+ .color_999999,
|
|
|
|
405
|
+ fontSize:
|
|
|
|
406
|
+ font(12),
|
|
|
|
407
|
+ ),
|
|
|
|
408
|
+ // isCollapsed:
|
|
|
|
409
|
+ // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
410
|
+ border: OutlineInputBorder(
|
|
|
|
411
|
+ borderSide:
|
|
|
|
412
|
+ BorderSide
|
|
|
|
413
|
+ .none),
|
|
|
|
414
|
+ contentPadding:
|
|
|
|
415
|
+ EdgeInsets.zero,
|
|
|
|
416
|
+ ),
|
|
|
|
417
|
+ keyboardType:
|
|
|
|
418
|
+ TextInputType
|
|
|
|
419
|
+ .number,
|
|
|
|
420
|
+ textInputAction:
|
|
|
|
421
|
+ TextInputAction
|
|
|
|
422
|
+ .done,
|
|
|
|
423
|
+
|
|
|
|
424
|
+ onChanged: (value) {
|
|
|
|
425
|
+ // setState(() {});
|
|
|
|
426
|
+ // _searchSellerLocation();
|
|
|
|
427
|
+ // customerProvider.searchData(value);
|
|
|
|
428
|
+ },
|
|
|
|
429
|
+ onEditingComplete:
|
|
|
|
430
|
+ () {
|
|
|
|
431
|
+ FocusScope.of(
|
|
|
|
432
|
+ context)
|
|
|
|
433
|
+ .requestFocus(
|
|
|
|
434
|
+ FocusNode()); //点击空白处隐藏键盘
|
|
|
|
435
|
+ // contantShowModel.searchData(
|
|
|
|
436
|
+ // contantShowModel.controller.text);
|
|
|
|
437
|
+ // _searchSellerLocation();
|
|
|
|
438
|
+ // _focusNode.unfocus();
|
|
|
|
439
|
+ },
|
|
|
|
440
|
+ )),
|
|
|
|
441
|
+ HEmptyView(8),
|
|
|
|
442
|
+ Image.asset(
|
|
|
|
443
|
+ Utils.getImgPath(
|
|
|
|
444
|
+ 'plan_dish_add'),
|
|
|
|
445
|
+ width: w(16),
|
|
|
|
446
|
+ ),
|
|
|
|
447
|
+ ],
|
|
|
|
448
|
+ ),
|
|
|
|
449
|
+ );
|
|
|
|
450
|
+ });
|
|
|
|
451
|
+ });
|
|
|
|
452
|
+ });
|
|
|
|
453
|
+ }),
|
|
|
|
454
|
+ ListView.builder(
|
|
|
|
455
|
+ itemCount: dataLocalShowOne.length,
|
|
125
|
shrinkWrap: true,
|
456
|
shrinkWrap: true,
|
|
126
|
controller: controller,
|
457
|
controller: controller,
|
|
127
|
itemBuilder: (context, index) {
|
458
|
itemBuilder: (context, index) {
|
|
|
|
459
|
+ MenuModel menuModel = dataLocalShowOne[index];
|
|
128
|
return ListView.builder(
|
460
|
return ListView.builder(
|
|
129
|
- itemCount: 2 + 1,
|
461
|
+ itemCount: menuModel.cookbooklist.length + 1,
|
|
130
|
shrinkWrap: true,
|
462
|
shrinkWrap: true,
|
|
131
|
controller: controller,
|
463
|
controller: controller,
|
|
132
|
itemBuilder: (context, index) {
|
464
|
itemBuilder: (context, index) {
|
|
@@ -153,7 +485,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -153,7 +485,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
153
|
.spaceBetween,
|
485
|
.spaceBetween,
|
|
154
|
children: [
|
486
|
children: [
|
|
155
|
Text(
|
487
|
Text(
|
|
156
|
- '热菜',
|
488
|
+ menuModel.className,
|
|
157
|
style: TextStyle(
|
489
|
style: TextStyle(
|
|
158
|
fontSize: font(16),
|
490
|
fontSize: font(16),
|
|
159
|
color: MyColours
|
491
|
color: MyColours
|
|
@@ -175,6 +507,8 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -175,6 +507,8 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
175
|
);
|
507
|
);
|
|
176
|
}
|
508
|
}
|
|
177
|
int indexReal = index - 1;
|
509
|
int indexReal = index - 1;
|
|
|
|
510
|
+ MenuSunModel menuSunModel =
|
|
|
|
511
|
+ menuModel.cookbooklist[indexReal];
|
|
178
|
return Container(
|
512
|
return Container(
|
|
179
|
padding: EdgeInsets.symmetric(
|
513
|
padding: EdgeInsets.symmetric(
|
|
180
|
horizontal: w(20), vertical: w(13)),
|
514
|
horizontal: w(20), vertical: w(13)),
|
|
@@ -190,7 +524,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -190,7 +524,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
190
|
constraints:
|
524
|
constraints:
|
|
191
|
BoxConstraints(maxWidth: w(80)),
|
525
|
BoxConstraints(maxWidth: w(80)),
|
|
192
|
child: Text(
|
526
|
child: Text(
|
|
193
|
- '山城辣子鸡',
|
527
|
+ menuSunModel.name,
|
|
194
|
maxLines: 10,
|
528
|
maxLines: 10,
|
|
195
|
overflow: TextOverflow.ellipsis,
|
529
|
overflow: TextOverflow.ellipsis,
|
|
196
|
style: TextStyle(
|
530
|
style: TextStyle(
|
|
@@ -198,11 +532,11 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -198,11 +532,11 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
198
|
color:
|
532
|
color:
|
|
199
|
MyColours.color_515151),
|
533
|
MyColours.color_515151),
|
|
200
|
)),
|
534
|
)),
|
|
201
|
- HEmptyView(8),
|
|
|
|
202
|
- _laduWidget(),
|
535
|
+ // HEmptyView(8),
|
|
|
|
536
|
+ // _laduWidget(),
|
|
203
|
Spacer(),
|
537
|
Spacer(),
|
|
204
|
Text(
|
538
|
Text(
|
|
205
|
- '38元/份',
|
539
|
+ '${menuSunModel.price}元/${menuSunModel.unit}',
|
|
206
|
maxLines: 2,
|
540
|
maxLines: 2,
|
|
207
|
overflow: TextOverflow.ellipsis,
|
541
|
overflow: TextOverflow.ellipsis,
|
|
208
|
style: TextStyle(
|
542
|
style: TextStyle(
|
|
@@ -211,7 +545,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -211,7 +545,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
211
|
),
|
545
|
),
|
|
212
|
HEmptyView(28),
|
546
|
HEmptyView(28),
|
|
213
|
Text(
|
547
|
Text(
|
|
214
|
- '38元/份',
|
548
|
+ '${menuSunModel.member_price}元/${menuSunModel.unit}',
|
|
215
|
maxLines: 2,
|
549
|
maxLines: 2,
|
|
216
|
overflow: TextOverflow.ellipsis,
|
550
|
overflow: TextOverflow.ellipsis,
|
|
217
|
style: TextStyle(
|
551
|
style: TextStyle(
|
|
@@ -237,7 +571,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
@@ -237,7 +571,7 @@ class _OrderEditListShowPageState extends State<OrderEditListShowPage> { |
|
237
|
// constraints: BoxConstraints(minWidth: w(20)),
|
571
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
238
|
child: TextField(
|
572
|
child: TextField(
|
|
239
|
maxLines: 1,
|
573
|
maxLines: 1,
|
|
240
|
- // controller:
|
574
|
+ controller: menuSunModel.amountC,
|
|
241
|
// focusNode: _focusNode,
|
575
|
// focusNode: _focusNode,
|
|
242
|
// autofocus: true,
|
576
|
// autofocus: true,
|
|
243
|
|
577
|
|