Commit c506228f4d3ccb6f884fe7918b639c283994e7b5

Authored by wdn127929
1 parent 7c92e57a

套餐删除按钮功能未实现

@@ -2647,11 +2647,33 @@ class _FeastCreatePageState extends State<FeastCreatePage> { @@ -2647,11 +2647,33 @@ class _FeastCreatePageState extends State<FeastCreatePage> {
2647 )), 2647 )),
2648 HEmptyView(32), 2648 HEmptyView(32),
2649 InkWell( 2649 InkWell(
  2650 + onTap: () {
  2651 + FocusScope.of(context)
  2652 + .requestFocus(
  2653 + FocusNode()); //点击空白处隐藏键盘
  2654 + //弹框确认是否删除
  2655 + DialogUtil
  2656 + .cupertinoAlertDialog(
  2657 + context,
  2658 + title: "",
  2659 + content: "是否确定删除?",
  2660 + isBoldContent: true,
  2661 + contentColor: MyColours
  2662 + .color_E6000000,
  2663 + rTitle: "删除",
  2664 + rCallback: () {
  2665 + xuantaiData[
  2666 + xuantaiSelIndex]
  2667 + .setmeal
  2668 + .removeAt(index);
  2669 + setState(() {});
  2670 + });
  2671 + },
2650 child: Image.asset( 2672 child: Image.asset(
2651 - Utils.getImgPath(  
2652 - 'f_delete_red'),  
2653 - width: w(20),  
2654 - )) 2673 + Utils.getImgPath(
  2674 + 'f_delete_red'),
  2675 + width: w(20),
  2676 + ))
2655 ], 2677 ],
2656 ), 2678 ),
2657 VEmptyView(32), 2679 VEmptyView(32),