|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart';
|
|
|
|
import 'package:one_key/utils/repaint_boundary_utils.dart';
|
|
|
|
import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
...
|
...
|
@@ -12,8 +13,12 @@ import '../../../widgets/round_button.dart'; |
|
|
|
import '../../../widgets/v_empty_view.dart';
|
|
|
|
import '../../models/cookbook_model.dart';
|
|
|
|
import '../../models/notebook_detail.dart';
|
|
|
|
import '../../models/recharge_list_model.dart';
|
|
|
|
import '../../provider/marketing_center_provider.dart';
|
|
|
|
import '../../provider/user_model.dart';
|
|
|
|
import '../../route/navigator_util.dart';
|
|
|
|
import '../../utils/share_helper.dart';
|
|
|
|
import '../my/marketing_center/recharge/recharge_item.dart';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生成的预览页
|
|
...
|
...
|
@@ -46,10 +51,45 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> { |
|
|
|
//全局key-截图key
|
|
|
|
final GlobalKey boundaryKey = GlobalKey();
|
|
|
|
|
|
|
|
MarketingCenterProvider marketingCenterProvider;
|
|
|
|
int index;
|
|
|
|
TextEditingController recommendC = TextEditingController();
|
|
|
|
bool isRecharge = true;
|
|
|
|
bool isRecommend = true;
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
Utils.changeStatusColor(color: Colors.transparent);
|
|
|
|
recommendC.text =
|
|
|
|
'${widget.detailEntity.rnameStr ?? ''}:\n 根据您选择的菜品,我们推荐您参加以下活动,本次消费可用,预计可以享受大量优惠!';
|
|
|
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
|
|
|
_getNewRechargeList();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
_getNewRechargeList() async {
|
|
|
|
await marketingCenterProvider.getNewRechargeList(context);
|
|
|
|
if (marketingCenterProvider.rechargeList != null &&
|
|
|
|
marketingCenterProvider.rechargeList.length > 0) {
|
|
|
|
index = 0; //默认展示第一个
|
|
|
|
_getRecommendC();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
_getRecommendC() {
|
|
|
|
String show = marketingCenterProvider
|
|
|
|
.rechargeList[index].rechargeList.isPrice ==
|
|
|
|
'1'
|
|
|
|
? '预计可以节约${marketingCenterProvider.rechargeList[index].rechargeList.price}元!'
|
|
|
|
: '预计可以享受大量优惠!';
|
|
|
|
|
|
|
|
String name = widget.detailEntity.rnameStr == null
|
|
|
|
? '${widget.detailEntity.rnameStr}:\n'
|
|
|
|
: '';
|
|
|
|
|
|
|
|
recommendC.text = '${name} 根据您选择的菜品,我们推荐您参加以下活动,本次消费可用,${show}';
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
|
|
|
|
Widget _laduWidget() {
|
|
...
|
...
|
@@ -76,6 +116,8 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> { |
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
marketingCenterProvider =
|
|
|
|
Provider.of<MarketingCenterProvider>(context, listen: true);
|
|
|
|
String sellername =
|
|
|
|
Provider.of<UserModel>(context, listen: false).user.sellername;
|
|
|
|
String sellerAdr =
|
|
...
|
...
|
@@ -90,404 +132,633 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> { |
|
|
|
String servicePerson = '${widget.detailEntity.nick_name ?? ''}' +
|
|
|
|
' ' +
|
|
|
|
'${widget.detailEntity.seller_user_phone ?? ''}';
|
|
|
|
return Scaffold(
|
|
|
|
return KeyboardDismissOnTap(
|
|
|
|
child: Scaffold(
|
|
|
|
backgroundColor: MyColours.color_ffffff,
|
|
|
|
appBar: SystemAppBar('排菜单'),
|
|
|
|
body: Column(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: controller,
|
|
|
|
child: RepaintBoundary(
|
|
|
|
key: boundaryKey,
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
child: Column(children: [
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
margin: EdgeInsets.zero,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(20),
|
|
|
|
right: w(20),
|
|
|
|
top: w(30),
|
|
|
|
bottom: w(15)),
|
|
|
|
// height: w(200),
|
|
|
|
// constraints: new BoxConstraints.expand(
|
|
|
|
// height: w(200),
|
|
|
|
// ),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
|
|
|
image: AssetImage(
|
|
|
|
Utils.getImgPath('preview_bg')),
|
|
|
|
fit: BoxFit.cover
|
|
|
|
|
|
|
|
// centerSlice: new Rect.fromLTRB(270.0, 180.0, 1360.0, 730.0),
|
|
|
|
)),
|
|
|
|
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'${sellername} 贵宾排菜菜单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(20),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_CFB53B),
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Text(
|
|
|
|
'预订贵宾 | ${widget.detailEntity.rnameStr ?? ''}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_303030),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'预订时间 | ${widget.detailEntity.ddateymd}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_303030),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'区域桌台 | ${tables}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_303030),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'餐厅地址 | ${sellerAdr}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_303030),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'专属服务 | ${servicePerson}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_303030),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
widget.name != null && widget.name != ''
|
|
|
|
? Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// width: w(32),
|
|
|
|
// constraints: BoxConstraints(
|
|
|
|
// minHeight: w(48),
|
|
|
|
// ),
|
|
|
|
// height: w(48),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(10),
|
|
|
|
right: w(20),
|
|
|
|
top: w(10),
|
|
|
|
bottom: w(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
// top: BorderSide(
|
|
|
|
// width: w(1), color: MyColours.color_DBDBDB),
|
|
|
|
bottom: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color:
|
|
|
|
MyColours.color_DBDBDB))),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
widget.name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
)
|
|
|
|
// TextField(
|
|
|
|
// maxLines: 1,
|
|
|
|
// // controller:
|
|
|
|
// // focusNode: _focusNode,
|
|
|
|
// // autofocus: true,
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: font(16),
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
// textAlign: TextAlign.left,
|
|
|
|
// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// // hintText: "请输入排菜名称",
|
|
|
|
// hintText: '朋友小聚888套餐(若无名称不展示本行)',
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_999999,
|
|
|
|
// fontSize: font(16),
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
// // isCollapsed:
|
|
|
|
// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// keyboardType: TextInputType.text,
|
|
|
|
// textInputAction: TextInputAction.done,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
RepaintBoundary(
|
|
|
|
key: boundaryKey,
|
|
|
|
child: Container(
|
|
|
|
color: Colors.white,
|
|
|
|
child: Column(children: [
|
|
|
|
Stack(children: [
|
|
|
|
Stack(
|
|
|
|
// alignment: AlignmentDirectional.bottomCenter, // alignment:子组件对齐方式 系统默认
|
|
|
|
// alignment: const FractionalOffset(0.5, 0.9), //自己指定Stack子组件对齐 ,只对Stack中有两个子View生效。0.5表示x轴,0.9表示y轴(FractionalOffset 0.5,0.5表示中心)
|
|
|
|
//AlignmentDirectional x、y 偏移量取值范围为 [-1,1],如果 x 的偏移量大于 0,则表示向右偏移,小于 0 则向左偏移;如果 y 轴的偏移量大于 0 则向下偏移,小于 0 则向上偏移。
|
|
|
|
alignment: AlignmentDirectional(
|
|
|
|
0, 0), //AlignmentDirectional 0,0表示在正中心。
|
|
|
|
fit: StackFit.loose,
|
|
|
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
// // setState(() {});
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // customerProvider.searchData(value);
|
|
|
|
// },
|
|
|
|
// onEditingComplete: () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// // contantShowModel.searchData(
|
|
|
|
// // contantShowModel.controller.text);
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // _focusNode.unfocus();
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'1份',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
margin: EdgeInsets.zero,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(20),
|
|
|
|
right: w(20),
|
|
|
|
top: w(30),
|
|
|
|
bottom: w(15)),
|
|
|
|
// height: w(200),
|
|
|
|
// constraints: new BoxConstraints.expand(
|
|
|
|
// height: w(200),
|
|
|
|
// ),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
gradient: LinearGradient(
|
|
|
|
stops: [
|
|
|
|
-0.5747,
|
|
|
|
0.5572,
|
|
|
|
1.4872
|
|
|
|
],
|
|
|
|
colors: [
|
|
|
|
MyColours.color_4C8DAD,
|
|
|
|
MyColours.color_0143A3,
|
|
|
|
MyColours.color_42A5FF
|
|
|
|
],
|
|
|
|
begin: Alignment.topLeft,
|
|
|
|
end: Alignment.bottomRight),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))
|
|
|
|
: SizedBox(),
|
|
|
|
ListView.builder(
|
|
|
|
itemCount: widget.showList.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: controller,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
MenuModel menuModel = widget.showList[index];
|
|
|
|
return ListView.builder(
|
|
|
|
itemCount:
|
|
|
|
menuModel.cookbooklist.length + 1,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: controller,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
if (index == 0) {
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
//头
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// width: w(32),
|
|
|
|
height: w(48),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(10),
|
|
|
|
right: w(20)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_DBDBDB))),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment
|
|
|
|
.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
menuModel.className,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151,
|
|
|
|
fontWeight:
|
|
|
|
FontWeight
|
|
|
|
.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${menuModel.allSum}道',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
int indexReal = index - 1;
|
|
|
|
MenuSunModel menuSunModel =
|
|
|
|
menuModel.cookbooklist[indexReal];
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(20),
|
|
|
|
vertical: w(13)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_DBDBDB))),
|
|
|
|
child: Row(
|
|
|
|
child: Container(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'${sellername} 贵宾排菜菜单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(20),
|
|
|
|
fontWeight:
|
|
|
|
FontWeight.bold,
|
|
|
|
color:
|
|
|
|
Colors.transparent),
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Text(
|
|
|
|
'预订贵宾 | ${widget.detailEntity.rnameStr ?? ''}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
Colors.transparent),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'预订时间 | ${widget.detailEntity.ddateymd}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
Colors.transparent),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'区域桌台 | ${tables}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
Colors.transparent),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'餐厅地址 | ${sellerAdr}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
Colors.transparent),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'专属服务 | ${servicePerson}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
Colors.transparent),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
right: w(22),
|
|
|
|
bottom: w(30),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('menu_bg')),
|
|
|
|
width: w(170),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
top: w(30),
|
|
|
|
left: w(20),
|
|
|
|
child: Container(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
// Container(
|
|
|
|
// constraints: BoxConstraints(
|
|
|
|
// maxWidth: w(80)),
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
menuSunModel.name,
|
|
|
|
maxLines: 10,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
Text(
|
|
|
|
'${sellername} 贵宾排菜菜单',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(20),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color:
|
|
|
|
MyColours.color_CFB53B),
|
|
|
|
),
|
|
|
|
VEmptyView(26),
|
|
|
|
Text(
|
|
|
|
'预订贵宾 | ${widget.detailEntity.rnameStr ?? ''}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
MyColours.color_CFB53B),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'预订时间 | ${widget.detailEntity.ddateymd}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
MyColours.color_CFB53B),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'区域桌台 | ${tables}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
MyColours.color_515151),
|
|
|
|
)),
|
|
|
|
// HEmptyView(8),
|
|
|
|
// _laduWidget(),
|
|
|
|
Spacer(),
|
|
|
|
MyColours.color_CFB53B),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'${menuSunModel.price}元/${menuSunModel.unit}',
|
|
|
|
maxLines: 2,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
'餐厅地址 | ${sellerAdr}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
MyColours.color_515151),
|
|
|
|
MyColours.color_CFB53B),
|
|
|
|
),
|
|
|
|
// HEmptyView(108),
|
|
|
|
// Text(
|
|
|
|
// '38元/份',
|
|
|
|
// maxLines: 2,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: font(10),
|
|
|
|
// color: MyColours.color_8EBBBE),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
width: w(79),
|
|
|
|
alignment:
|
|
|
|
Alignment.centerRight,
|
|
|
|
child: Text(
|
|
|
|
'${menuSunModel.amount}份',
|
|
|
|
VEmptyView(10),
|
|
|
|
Text(
|
|
|
|
'专属服务 | ${servicePerson}',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
MyColours.color_CFB53B),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
]),
|
|
|
|
widget.name != null && widget.name != ''
|
|
|
|
? Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// width: w(32),
|
|
|
|
// constraints: BoxConstraints(
|
|
|
|
// minHeight: w(48),
|
|
|
|
// ),
|
|
|
|
// height: w(48),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(10),
|
|
|
|
right: w(20),
|
|
|
|
top: w(10),
|
|
|
|
bottom: w(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
// top: BorderSide(
|
|
|
|
// width: w(1), color: MyColours.color_DBDBDB),
|
|
|
|
bottom: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_DBDBDB))),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
widget.name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
)
|
|
|
|
// TextField(
|
|
|
|
// maxLines: 1,
|
|
|
|
// // controller:
|
|
|
|
// // focusNode: _focusNode,
|
|
|
|
// // autofocus: true,
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontSize: font(16),
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
// textAlign: TextAlign.left,
|
|
|
|
// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// // hintText: "请输入排菜名称",
|
|
|
|
// hintText: '朋友小聚888套餐(若无名称不展示本行)',
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_999999,
|
|
|
|
// fontSize: font(16),
|
|
|
|
// fontWeight: FontWeight.bold),
|
|
|
|
// // isCollapsed:
|
|
|
|
// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
// border: OutlineInputBorder(
|
|
|
|
// borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// keyboardType: TextInputType.text,
|
|
|
|
// textInputAction: TextInputAction.done,
|
|
|
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
// // setState(() {});
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // customerProvider.searchData(value);
|
|
|
|
// },
|
|
|
|
// onEditingComplete: () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// // contantShowModel.searchData(
|
|
|
|
// // contantShowModel.controller.text);
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // _focusNode.unfocus();
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'1份',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color:
|
|
|
|
MyColours.color_515151),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))
|
|
|
|
: SizedBox(),
|
|
|
|
ListView.builder(
|
|
|
|
itemCount: widget.showList.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: controller,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
MenuModel menuModel =
|
|
|
|
widget.showList[index];
|
|
|
|
return ListView.builder(
|
|
|
|
itemCount:
|
|
|
|
menuModel.cookbooklist.length + 1,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: controller,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
if (index == 0) {
|
|
|
|
return Column(
|
|
|
|
children: [
|
|
|
|
//头
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// width: w(32),
|
|
|
|
height: w(48),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(10),
|
|
|
|
right: w(20)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_DBDBDB))),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment
|
|
|
|
.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
menuModel.className,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
font(16),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151,
|
|
|
|
fontWeight:
|
|
|
|
FontWeight
|
|
|
|
.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${menuModel.allSum}道',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
int indexReal = index - 1;
|
|
|
|
MenuSunModel menuSunModel =
|
|
|
|
menuModel
|
|
|
|
.cookbooklist[indexReal];
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(20),
|
|
|
|
vertical: w(13)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours
|
|
|
|
.color_DBDBDB))),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
// Container(
|
|
|
|
// constraints: BoxConstraints(
|
|
|
|
// maxWidth: w(80)),
|
|
|
|
Expanded(
|
|
|
|
child: Text(
|
|
|
|
menuSunModel.name,
|
|
|
|
maxLines: 10,
|
|
|
|
overflow:
|
|
|
|
TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
widget.remark != null && widget.remark != ''
|
|
|
|
? Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(15), vertical: w(7)),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
top: w(7),
|
|
|
|
bottom: w(13),
|
|
|
|
left: w(20),
|
|
|
|
right: w(20)),
|
|
|
|
// HEmptyView(8),
|
|
|
|
// _laduWidget(),
|
|
|
|
Spacer(),
|
|
|
|
Text(
|
|
|
|
'${menuSunModel.price}元/${menuSunModel.unit}',
|
|
|
|
maxLines: 2,
|
|
|
|
overflow:
|
|
|
|
TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151),
|
|
|
|
),
|
|
|
|
// HEmptyView(108),
|
|
|
|
// Text(
|
|
|
|
// '38元/份',
|
|
|
|
// maxLines: 2,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: font(10),
|
|
|
|
// color: MyColours.color_8EBBBE),
|
|
|
|
// ),
|
|
|
|
Container(
|
|
|
|
width: w(79),
|
|
|
|
alignment:
|
|
|
|
Alignment.centerRight,
|
|
|
|
child: Text(
|
|
|
|
'${menuSunModel.amount}份',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours
|
|
|
|
.color_515151),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}),
|
|
|
|
widget.remark != null && widget.remark != ''
|
|
|
|
? Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(15), vertical: w(7)),
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
top: w(7),
|
|
|
|
bottom: w(13),
|
|
|
|
left: w(20),
|
|
|
|
right: w(20)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(r(5)),
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours.color_DBDBDB)),
|
|
|
|
child: Text(
|
|
|
|
"${widget.remark}",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(12)),
|
|
|
|
)
|
|
|
|
// child: TextField(
|
|
|
|
// maxLines: 4,
|
|
|
|
// // controller:
|
|
|
|
// // focusNode: _focusNode,
|
|
|
|
// // autofocus: true,
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151, fontSize: font(12)),
|
|
|
|
// textAlign: TextAlign.left,
|
|
|
|
// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入整单备注",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_999999,
|
|
|
|
// fontSize: font(12),
|
|
|
|
// ),
|
|
|
|
// // isCollapsed:
|
|
|
|
// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
// border:
|
|
|
|
// OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
// textInputAction: TextInputAction.done,
|
|
|
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
// // setState(() {});
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // customerProvider.searchData(value);
|
|
|
|
// },
|
|
|
|
// onEditingComplete: () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// // contantShowModel.searchData(
|
|
|
|
// // contantShowModel.controller.text);
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // _focusNode.unfocus();
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(r(5)),
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours.color_DBDBDB)),
|
|
|
|
child: Text(
|
|
|
|
"${widget.remark}",
|
|
|
|
border: Border(
|
|
|
|
top: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: widget.remark != null &&
|
|
|
|
widget.remark != ''
|
|
|
|
? MyColours.color_DBDBDB
|
|
|
|
: Colors.transparent))),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(10), vertical: w(15)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceAround,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'总计',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'菜单价:${widget.priceSum}元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'会员价:${widget.memberPriceSum}元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'排菜价:${widget.planDishText}元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)
|
|
|
|
])),
|
|
|
|
VEmptyView(10),
|
|
|
|
]))),
|
|
|
|
VEmptyView(10),
|
|
|
|
if (index != null)
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
isRecharge = !isRecharge;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: w(20)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(isRecharge
|
|
|
|
? 'f_select'
|
|
|
|
: 'f_select_not'),
|
|
|
|
width: w(20),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'推荐优惠活动(点击优惠活动可以切换其他优惠)',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(12)),
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)
|
|
|
|
// child: TextField(
|
|
|
|
// maxLines: 4,
|
|
|
|
// // controller:
|
|
|
|
// // focusNode: _focusNode,
|
|
|
|
// // autofocus: true,
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
if (index != null) VEmptyView(15),
|
|
|
|
if (index != null)
|
|
|
|
RechargeItem(
|
|
|
|
from: 'menu',
|
|
|
|
rechargeListSunModel:
|
|
|
|
marketingCenterProvider.rechargeList[index],
|
|
|
|
onPressed: () {
|
|
|
|
//切换活动
|
|
|
|
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151, fontSize: font(12)),
|
|
|
|
// textAlign: TextAlign.left,
|
|
|
|
// // textAlignVertical: TextAlignVertical.center,
|
|
|
|
// decoration: InputDecoration(
|
|
|
|
// hintText: "请输入整单备注",
|
|
|
|
// hintStyle: TextStyle(
|
|
|
|
// color: MyColours.color_999999,
|
|
|
|
// fontSize: font(12),
|
|
|
|
// ),
|
|
|
|
// // isCollapsed:
|
|
|
|
// // true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
// border:
|
|
|
|
// OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
// contentPadding: EdgeInsets.zero,
|
|
|
|
// ),
|
|
|
|
// keyboardType: TextInputType.number,
|
|
|
|
// textInputAction: TextInputAction.done,
|
|
|
|
if (index ==
|
|
|
|
marketingCenterProvider.rechargeList.length -
|
|
|
|
1) {
|
|
|
|
index = 0;
|
|
|
|
} else {
|
|
|
|
index++;
|
|
|
|
}
|
|
|
|
|
|
|
|
// onChanged: (value) {
|
|
|
|
// // setState(() {});
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // customerProvider.searchData(value);
|
|
|
|
// },
|
|
|
|
// onEditingComplete: () {
|
|
|
|
// FocusScope.of(context)
|
|
|
|
// .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// // contantShowModel.searchData(
|
|
|
|
// // contantShowModel.controller.text);
|
|
|
|
// // _searchSellerLocation();
|
|
|
|
// // _focusNode.unfocus();
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
top: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours.color_DBDBDB))),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(10), vertical: w(15)),
|
|
|
|
_getRecommendC();
|
|
|
|
},
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
if (index != null)
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
setState(() {
|
|
|
|
isRecommend = !isRecommend;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: w(20)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceAround,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'总计',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'菜单价:${widget.priceSum}元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'会员价:${widget.memberPriceSum}元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'排菜价:${widget.planDishText}元',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)
|
|
|
|
])),
|
|
|
|
Text(
|
|
|
|
'周到安排技术支持 400-000-9690',
|
|
|
|
style: TextStyle(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(isRecommend
|
|
|
|
? 'f_select'
|
|
|
|
: 'f_select_not'),
|
|
|
|
width: w(20),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Text(
|
|
|
|
'使用自动生成的推荐语(可点击编辑)',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
if (index != null) VEmptyView(15),
|
|
|
|
if (index != null)
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(20)),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(r(5)),
|
|
|
|
border: Border.all(
|
|
|
|
width: w(0.5),
|
|
|
|
color: MyColours.color_DBDBDB)),
|
|
|
|
child: TextField(
|
|
|
|
controller: recommendC,
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
// textAlignVertical:
|
|
|
|
// TextAlignVertical.bottom,
|
|
|
|
maxLines: 3,
|
|
|
|
// //光标颜色
|
|
|
|
// cursorColor:
|
|
|
|
// widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
//输入文本的样式
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_999999),
|
|
|
|
),
|
|
|
|
]))))),
|
|
|
|
),
|
|
|
|
// focusNode: focusNode,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
border: OutlineInputBorder(
|
|
|
|
borderSide: BorderSide.none),
|
|
|
|
hintText: '请输入推荐语',
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(12),
|
|
|
|
),
|
|
|
|
enabledBorder: new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
focusedBorder: new UnderlineInputBorder(
|
|
|
|
borderSide: BorderSide.none,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onChanged: (value) {},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context)
|
|
|
|
.requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
},
|
|
|
|
keyboardType: TextInputType.text)),
|
|
|
|
VEmptyView(20),
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.only(
|
|
...
|
...
|
@@ -514,7 +785,7 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> { |
|
|
|
HEmptyView(30),
|
|
|
|
Expanded(
|
|
|
|
child: RoundButton(
|
|
|
|
text: '分享排菜单',
|
|
|
|
text: '下一步',
|
|
|
|
gradientStart: MyColours.color_438E93,
|
|
|
|
gradientEnd: MyColours.color_438E93,
|
|
|
|
height: w(43),
|
|
...
|
...
|
@@ -522,9 +793,32 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> { |
|
|
|
fontSize: 36,
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () {
|
|
|
|
ShareHelper.onShareWx(context,
|
|
|
|
boundaryKey: boundaryKey);
|
|
|
|
// NavigatorUtil.goOrderPreviewPage(context);
|
|
|
|
if (index != null) {
|
|
|
|
NavigatorUtil.goOrderSharePage(context,
|
|
|
|
object: {'object': widget.showList},
|
|
|
|
name: widget.name,
|
|
|
|
remark: widget.remark,
|
|
|
|
priceSum: widget.priceSum,
|
|
|
|
memberPriceSum: widget.memberPriceSum,
|
|
|
|
planDishText: widget.planDishText,
|
|
|
|
detailEntity: widget.detailEntity,
|
|
|
|
rechargeListSunModel:
|
|
|
|
marketingCenterProvider.rechargeList[index],
|
|
|
|
recommend: recommendC.text,
|
|
|
|
isRecharge: isRecharge,
|
|
|
|
isRecommend: isRecommend);
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goOrderSharePage(
|
|
|
|
context,
|
|
|
|
object: {'object': widget.showList},
|
|
|
|
name: widget.name,
|
|
|
|
remark: widget.remark,
|
|
|
|
priceSum: widget.priceSum,
|
|
|
|
memberPriceSum: widget.memberPriceSum,
|
|
|
|
planDishText: widget.planDishText,
|
|
|
|
detailEntity: widget.detailEntity,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
),
|
|
|
|
)
|
|
...
|
...
|
@@ -532,6 +826,6 @@ class _OrderPreviewPageState extends State<OrderPreviewPage> { |
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|