|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
import 'package:one_key/res/colors.dart';
|
|
|
|
import 'package:one_key/widgets/MyDivider.dart';
|
|
|
|
import 'package:one_key/widgets/h_empty_view.dart';
|
|
|
|
import 'package:one_key/widgets/round_button.dart';
|
|
|
|
import 'package:one_key/widgets/system_app_bar.dart';
|
|
|
|
import 'package:one_key/widgets/v_empty_view.dart';
|
|
|
|
|
|
|
|
import '../../models/cookbook_model.dart';
|
|
|
|
import '../../utils/event_bus.dart';
|
|
|
|
import '../../utils/screen_util.dart';
|
|
|
|
import '../../utils/utils.dart';
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* 临时菜新增页
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
class OrderCreateTemporaryPage extends StatefulWidget {
|
|
|
|
final List<MenuModel> data;
|
|
|
|
OrderCreateTemporaryPage({Key key, this.data}) : super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_OrderCreateTemporaryPageState createState() =>
|
|
|
|
_OrderCreateTemporaryPageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _OrderCreateTemporaryPageState extends State<OrderCreateTemporaryPage> {
|
|
|
|
TextEditingController name = TextEditingController();
|
|
|
|
TextEditingController price = TextEditingController();
|
|
|
|
TextEditingController number = TextEditingController();
|
|
|
|
TextEditingController unit = TextEditingController();
|
|
|
|
TextEditingController practice = TextEditingController();
|
|
|
|
ScrollController controller = ScrollController();
|
|
|
|
List<MenuSunModel> menuSunShort = [];
|
|
|
|
int allSum = 0;
|
|
|
|
|
|
|
|
@override
|
|
|
|
void initState() {
|
|
|
|
super.initState();
|
|
|
|
if (widget.data != null) {
|
|
|
|
widget.data.forEach((element) {
|
|
|
|
if (element.className == '临时加菜') {
|
|
|
|
menuSunShort = element.cookbooklist;
|
|
|
|
menuSunShort.removeWhere((value) => value.name == '临时菜');
|
|
|
|
allSum = 0;
|
|
|
|
menuSunShort.forEach((short) {
|
|
|
|
allSum += short.amount;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
_baseInputWidget(
|
|
|
|
String title, String hintText, TextEditingController controller,
|
|
|
|
{TextInputType keyboardType = TextInputType.text}) {
|
|
|
|
return Container(
|
|
|
|
height: w(40),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
title,
|
|
|
|
style: TextStyle(fontSize: font(12), color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
HEmptyView(34),
|
|
|
|
Container(
|
|
|
|
width: w(180),
|
|
|
|
height: w(30),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(12)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(r(5)),
|
|
|
|
border:
|
|
|
|
Border.all(color: MyColours.color_DBDBDB, width: w(1))),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: controller,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_000000, fontSize: font(12)),
|
|
|
|
textAlign: TextAlign.left,
|
|
|
|
// textAlignVertical: TextAlignVertical.center,
|
|
|
|
decoration: InputDecoration(
|
|
|
|
hintText: hintText,
|
|
|
|
hintStyle: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: font(12),
|
|
|
|
),
|
|
|
|
// isCollapsed:
|
|
|
|
// true, //重点,相当于高度包裹的意思,必须设置为true,不然有默认奇妙的最小高度
|
|
|
|
border: OutlineInputBorder(borderSide: BorderSide.none),
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
),
|
|
|
|
keyboardType: keyboardType,
|
|
|
|
textInputAction: TextInputAction.done,
|
|
|
|
|
|
|
|
onChanged: (value) {
|
|
|
|
// setState(() {});
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// customerProvider.searchData(value);
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context).requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
appBar: SystemAppBar('临时菜'),
|
|
|
|
body: Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: controller,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: w(20)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
VEmptyView(16),
|
|
|
|
_baseInputWidget('菜品名称', '点击输入菜品名称', name),
|
|
|
|
_baseInputWidget('菜品价格', '点击输入菜品价格', price,
|
|
|
|
keyboardType: TextInputType.number),
|
|
|
|
Container(
|
|
|
|
height: w(40),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'菜品数量',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
HEmptyView(34),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
int numStr = int.parse(number.text);
|
|
|
|
if (numStr == 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
numStr--;
|
|
|
|
number.text = numStr.toString();
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(48),
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: w(8)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('plan_dish_minus'),
|
|
|
|
width: w(16),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// HEmptyView(8),
|
|
|
|
Container(
|
|
|
|
width: w(32),
|
|
|
|
height: w(16),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(r(5)),
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours.color_999999)),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: number,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
inputFormatters: [
|
|
|
|
FilteringTextInputFormatter.allow(
|
|
|
|
RegExp(r'[0-9]')),
|
|
|
|
],
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: font(12)),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
// 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) {
|
|
|
|
if (value != null && value != '') {
|
|
|
|
//用户输入的数据
|
|
|
|
// int input = int.parse(value);
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
// HEmptyView(8),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (number.text == '') {
|
|
|
|
number.text = '0';
|
|
|
|
}
|
|
|
|
int numStr = int.parse(number.text);
|
|
|
|
numStr++;
|
|
|
|
number.text = numStr.toString();
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(48),
|
|
|
|
padding: EdgeInsets.only(left: w(8)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('plan_dish_add'),
|
|
|
|
width: w(16),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
_baseInputWidget('单 位', '点击输入计量单位', unit),
|
|
|
|
_baseInputWidget('做 法', '点击输入做法', practice),
|
|
|
|
VEmptyView(62),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(80)),
|
|
|
|
child: RoundButton(
|
|
|
|
text: '保存到临时菜单中',
|
|
|
|
height: w(43),
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
fontSize: 32,
|
|
|
|
radius: r(5),
|
|
|
|
onPressed: () {
|
|
|
|
if (name.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入菜品名称');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (price.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入菜品价格');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (number.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入菜品数量');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (unit.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入计量单位');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (practice.text.trim().length == 0) {
|
|
|
|
Utils.showToast('请输入做法');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
MenuSunModel menuSunModel = MenuSunModel();
|
|
|
|
menuSunModel.id = DateTime.now()
|
|
|
|
.millisecondsSinceEpoch
|
|
|
|
.toString();
|
|
|
|
menuSunModel.name = name.text;
|
|
|
|
menuSunModel.price = price.text;
|
|
|
|
menuSunModel.member_price = price.text;
|
|
|
|
menuSunModel.amount = number.text == ''
|
|
|
|
? 0
|
|
|
|
: int.parse(number.text);
|
|
|
|
menuSunModel.amountC = TextEditingController();
|
|
|
|
menuSunModel.amountC.text =
|
|
|
|
menuSunModel.amount.toString();
|
|
|
|
allSum += menuSunModel.amount;
|
|
|
|
menuSunModel.unit = unit.text;
|
|
|
|
menuSunModel.practice = [practice.text];
|
|
|
|
|
|
|
|
menuSunShort.add(menuSunModel);
|
|
|
|
|
|
|
|
name.text = '';
|
|
|
|
price.text = '';
|
|
|
|
number.text = '';
|
|
|
|
unit.text = '';
|
|
|
|
practice.text = '';
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
bus.emit('refresh_data', menuSunShort);
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
VEmptyView(26),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
w(1),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
height: w(30),
|
|
|
|
padding: EdgeInsets.only(left: w(10), right: w(20)),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'已经添加的临时菜品',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'${allSum ?? ''}道',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
w(1),
|
|
|
|
color: MyColours.color_DBDBDB,
|
|
|
|
),
|
|
|
|
ListView.builder(
|
|
|
|
controller: controller,
|
|
|
|
shrinkWrap: true,
|
|
|
|
itemCount: menuSunShort.length,
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
MenuSunModel menuSunModel = menuSunShort[index];
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(20), top: w(13), bottom: w(13)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
border: Border(
|
|
|
|
bottom: BorderSide(
|
|
|
|
width: w(1),
|
|
|
|
color: index == menuSunShort.length
|
|
|
|
? Colors.transparent
|
|
|
|
: MyColours.color_DBDBDB))),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
constraints: BoxConstraints(maxWidth: w(80)),
|
|
|
|
child: Text(
|
|
|
|
menuSunModel.name,
|
|
|
|
// 'fdfafaf',
|
|
|
|
maxLines: 10,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(14),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)),
|
|
|
|
// HEmptyView(8),
|
|
|
|
// _laduWidget(),
|
|
|
|
Spacer(),
|
|
|
|
Text(
|
|
|
|
'${menuSunModel.price}元/${menuSunModel.unit}',
|
|
|
|
// '38元/份',
|
|
|
|
maxLines: 2,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(12),
|
|
|
|
color: MyColours.color_999999),
|
|
|
|
),
|
|
|
|
HEmptyView(28),
|
|
|
|
Text(
|
|
|
|
'${menuSunModel.member_price}元/${menuSunModel.unit}',
|
|
|
|
// '38元/份',
|
|
|
|
maxLines: 2,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(10),
|
|
|
|
color: MyColours.color_8EBBBE),
|
|
|
|
),
|
|
|
|
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (menuSunModel.amount == 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
menuSunModel.amount--;
|
|
|
|
menuSunModel.amountC.text =
|
|
|
|
'${menuSunModel.amount}';
|
|
|
|
allSum--;
|
|
|
|
// menuModel.allSum--;
|
|
|
|
// carSum--;
|
|
|
|
|
|
|
|
// // priceSum -= double.parse(
|
|
|
|
// // menuSunModel.price);
|
|
|
|
// // planDishC.text =
|
|
|
|
// // priceSum.toString();
|
|
|
|
// // memberPriceSum -=
|
|
|
|
// // double.parse(menuSunModel
|
|
|
|
// // .member_price);
|
|
|
|
// _calculatePrice();
|
|
|
|
// if (menuSunModel.amount == 0) {
|
|
|
|
// //把当前菜品从列表中去除
|
|
|
|
// // MenuSunModel menuSunModelFTemp = menuSunModelF
|
|
|
|
// // dataLocalShowMore[indexMore];
|
|
|
|
// dataLocalShowOne[indexOne]
|
|
|
|
// .cookbooklist
|
|
|
|
// .removeAt(indexReal); //移除当前行
|
|
|
|
// //判断当前类没有cookbooklist,则删除当前类
|
|
|
|
// if (dataLocalShowOne[indexOne]
|
|
|
|
// .cookbooklist
|
|
|
|
// .length ==
|
|
|
|
// 0) {
|
|
|
|
// dataLocalShowOne.removeAt(indexOne);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
setState(() {});
|
|
|
|
bus.emit('refresh_data', menuSunShort);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(10), right: w(4)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('plan_dish_minus'),
|
|
|
|
width: w(16),
|
|
|
|
))),
|
|
|
|
|
|
|
|
Container(
|
|
|
|
width: w(32),
|
|
|
|
height: w(16),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(r(5)),
|
|
|
|
border: Border.all(
|
|
|
|
width: w(1),
|
|
|
|
color: MyColours.color_999999)),
|
|
|
|
// constraints: BoxConstraints(minWidth: w(20)),
|
|
|
|
child: TextField(
|
|
|
|
maxLines: 1,
|
|
|
|
controller: menuSunModel.amountC,
|
|
|
|
// focusNode: _focusNode,
|
|
|
|
// autofocus: true,
|
|
|
|
inputFormatters: [
|
|
|
|
FilteringTextInputFormatter.allow(
|
|
|
|
RegExp(r'[0-9]')),
|
|
|
|
],
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: font(12)),
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
// 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) {
|
|
|
|
// if (value != null && value != '') {
|
|
|
|
// //用户输入的数据
|
|
|
|
// int input = int.parse(value);
|
|
|
|
// //减去当前数据
|
|
|
|
|
|
|
|
// menuModel.allSum -= menuSunModel.amount;
|
|
|
|
|
|
|
|
// carSum -= menuSunModel.amount;
|
|
|
|
|
|
|
|
// if (input == 0) {
|
|
|
|
// //把当前菜品从列表中去除
|
|
|
|
|
|
|
|
// dataLocalShowOne[indexOne]
|
|
|
|
// .cookbooklist
|
|
|
|
// .removeAt(indexReal); //移除当前行
|
|
|
|
// //判断当前类没有cookbooklist,则删除当前类
|
|
|
|
// if (dataLocalShowOne[indexOne]
|
|
|
|
// .cookbooklist
|
|
|
|
// .length ==
|
|
|
|
// 0) {
|
|
|
|
// dataLocalShowOne.removeAt(indexOne);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// menuModel.allSum += input;
|
|
|
|
|
|
|
|
// carSum += input;
|
|
|
|
// }
|
|
|
|
|
|
|
|
// menuSunModel.amount = int.parse(value);
|
|
|
|
// _calculatePrice();
|
|
|
|
// setState(() {});
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
onEditingComplete: () {
|
|
|
|
FocusScope.of(context).requestFocus(
|
|
|
|
FocusNode()); //点击空白处隐藏键盘
|
|
|
|
// contantShowModel.searchData(
|
|
|
|
// contantShowModel.controller.text);
|
|
|
|
// _searchSellerLocation();
|
|
|
|
// _focusNode.unfocus();
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
menuSunModel.amount++;
|
|
|
|
menuSunModel.amountC.text =
|
|
|
|
'${menuSunModel.amount}';
|
|
|
|
allSum++;
|
|
|
|
// menuModel.allSum++;
|
|
|
|
// carSum++;
|
|
|
|
|
|
|
|
// _calculatePrice();
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
bus.emit('refresh_data', menuSunShort);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(4), right: w(18)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('plan_dish_add'),
|
|
|
|
width: w(16),
|
|
|
|
))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
})
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
top: w(12), bottom: w(25), left: w(23), right: w(23)),
|
|
|
|
child: Row(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
RoundButton(
|
|
|
|
text: '返回',
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
width: w(100),
|
|
|
|
height: w(43),
|
|
|
|
radius: r(5),
|
|
|
|
fontSize: 32,
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
}),
|
|
|
|
HEmptyView(30),
|
|
|
|
Expanded(
|
|
|
|
child: RoundButton(
|
|
|
|
text: '确定',
|
|
|
|
gradientStart: MyColours.color_438E93,
|
|
|
|
gradientEnd: MyColours.color_438E93,
|
|
|
|
height: w(43),
|
|
|
|
radius: r(5),
|
|
|
|
fontSize: 36,
|
|
|
|
isBold: false,
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
}))
|
|
|
|
])),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|