|
@@ -401,12 +401,12 @@ class DialogUtil { |
|
@@ -401,12 +401,12 @@ class DialogUtil { |
|
401
|
MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
401
|
MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
402
|
color: MyColours.color_f3f3f3),
|
402
|
color: MyColours.color_f3f3f3),
|
|
403
|
Row(
|
403
|
Row(
|
|
404
|
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
404
|
+ // mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
405
|
children: [
|
405
|
children: [
|
|
406
|
RoundButton(
|
406
|
RoundButton(
|
|
407
|
text: '取消',
|
407
|
text: '取消',
|
|
408
|
width: (ScreenUtil.screenWidthDp -
|
408
|
width: (ScreenUtil.screenWidthDp -
|
|
409
|
- ScreenUtil().setWidth(60) * 2) /
|
409
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
410
|
2,
|
410
|
2,
|
|
411
|
height: ScreenUtil().setWidth(112),
|
411
|
height: ScreenUtil().setWidth(112),
|
|
412
|
// radius: ScreenUtil().setWidth(10),
|
412
|
// radius: ScreenUtil().setWidth(10),
|
|
@@ -424,7 +424,7 @@ class DialogUtil { |
|
@@ -424,7 +424,7 @@ class DialogUtil { |
|
424
|
RoundButton(
|
424
|
RoundButton(
|
|
425
|
text: '确定',
|
425
|
text: '确定',
|
|
426
|
width: (ScreenUtil.screenWidthDp -
|
426
|
width: (ScreenUtil.screenWidthDp -
|
|
427
|
- ScreenUtil().setWidth(60) * 2) /
|
427
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
428
|
2,
|
428
|
2,
|
|
429
|
height: ScreenUtil().setWidth(112),
|
429
|
height: ScreenUtil().setWidth(112),
|
|
430
|
// radius: ScreenUtil().setWidth(10),
|
430
|
// radius: ScreenUtil().setWidth(10),
|
|
@@ -1088,14 +1088,14 @@ class DialogUtil { |
|
@@ -1088,14 +1088,14 @@ class DialogUtil { |
|
1088
|
ScreenUtil().setWidth(2),
|
1088
|
ScreenUtil().setWidth(2),
|
|
1089
|
color: MyColours.color_f3f3f3),
|
1089
|
color: MyColours.color_f3f3f3),
|
|
1090
|
Row(
|
1090
|
Row(
|
|
1091
|
- mainAxisAlignment:
|
|
|
|
1092
|
- MainAxisAlignment.spaceBetween,
|
1091
|
+ // mainAxisAlignment:
|
|
|
|
1092
|
+ // MainAxisAlignment.spaceBetween,
|
|
1093
|
children: [
|
1093
|
children: [
|
|
1094
|
RoundButton(
|
1094
|
RoundButton(
|
|
1095
|
text: '取消',
|
1095
|
text: '取消',
|
|
1096
|
width: (ScreenUtil.screenWidthDp -
|
1096
|
width: (ScreenUtil.screenWidthDp -
|
|
1097
|
ScreenUtil()
|
1097
|
ScreenUtil()
|
|
1098
|
- .setWidth(110) *
|
1098
|
+ .setWidth(62) *
|
|
1099
|
2) /
|
1099
|
2) /
|
|
1100
|
2,
|
1100
|
2,
|
|
1101
|
height:
|
1101
|
height:
|
|
@@ -1118,7 +1118,7 @@ class DialogUtil { |
|
@@ -1118,7 +1118,7 @@ class DialogUtil { |
|
1118
|
text: '确定',
|
1118
|
text: '确定',
|
|
1119
|
width: (ScreenUtil.screenWidthDp -
|
1119
|
width: (ScreenUtil.screenWidthDp -
|
|
1120
|
ScreenUtil()
|
1120
|
ScreenUtil()
|
|
1121
|
- .setWidth(110) *
|
1121
|
+ .setWidth(62) *
|
|
1122
|
2) /
|
1122
|
2) /
|
|
1123
|
2,
|
1123
|
2,
|
|
1124
|
height:
|
1124
|
height:
|
|
@@ -1529,14 +1529,14 @@ class DialogUtil { |
|
@@ -1529,14 +1529,14 @@ class DialogUtil { |
|
1529
|
ScreenUtil().setWidth(2),
|
1529
|
ScreenUtil().setWidth(2),
|
|
1530
|
color: MyColours.color_f3f3f3),
|
1530
|
color: MyColours.color_f3f3f3),
|
|
1531
|
Row(
|
1531
|
Row(
|
|
1532
|
- mainAxisAlignment:
|
|
|
|
1533
|
- MainAxisAlignment.spaceBetween,
|
1532
|
+ // mainAxisAlignment:
|
|
|
|
1533
|
+ // MainAxisAlignment.spaceBetween,
|
|
1534
|
children: [
|
1534
|
children: [
|
|
1535
|
RoundButton(
|
1535
|
RoundButton(
|
|
1536
|
text: '取消',
|
1536
|
text: '取消',
|
|
1537
|
width: (ScreenUtil.screenWidthDp -
|
1537
|
width: (ScreenUtil.screenWidthDp -
|
|
1538
|
ScreenUtil()
|
1538
|
ScreenUtil()
|
|
1539
|
- .setWidth(110) *
|
1539
|
+ .setWidth(62) *
|
|
1540
|
2) /
|
1540
|
2) /
|
|
1541
|
2,
|
1541
|
2,
|
|
1542
|
height:
|
1542
|
height:
|
|
@@ -1559,7 +1559,7 @@ class DialogUtil { |
|
@@ -1559,7 +1559,7 @@ class DialogUtil { |
|
1559
|
text: '确定',
|
1559
|
text: '确定',
|
|
1560
|
width: (ScreenUtil.screenWidthDp -
|
1560
|
width: (ScreenUtil.screenWidthDp -
|
|
1561
|
ScreenUtil()
|
1561
|
ScreenUtil()
|
|
1562
|
- .setWidth(110) *
|
1562
|
+ .setWidth(62) *
|
|
1563
|
2) /
|
1563
|
2) /
|
|
1564
|
2,
|
1564
|
2,
|
|
1565
|
height:
|
1565
|
height:
|
|
@@ -1651,13 +1651,16 @@ class DialogUtil { |
|
@@ -1651,13 +1651,16 @@ class DialogUtil { |
|
1651
|
});
|
1651
|
});
|
|
1652
|
}
|
1652
|
}
|
|
1653
|
|
1653
|
|
|
1654
|
- ///批量改名
|
|
|
|
1655
|
-
|
|
|
|
1656
|
- static Future openMyTableManageModifyTableNameDialog(
|
|
|
|
1657
|
- BuildContext context, {
|
1654
|
+ ///批量修改人数
|
|
|
|
1655
|
+ static Future openMyTableManageModifyTableNumDialog(
|
|
|
|
1656
|
+ BuildContext context,
|
|
|
|
1657
|
+ List<String> pnum, {
|
|
|
|
1658
|
+ String pnumMin = '',
|
|
|
|
1659
|
+ String pnumMax = '',
|
|
1658
|
CustomCallBackMap onTap,
|
1660
|
CustomCallBackMap onTap,
|
|
1659
|
}) async {
|
1661
|
}) async {
|
|
1660
|
- TextEditingController controller = TextEditingController();
|
1662
|
+ bool showPnumMin = true;
|
|
|
|
1663
|
+ bool showPnumMax = true;
|
|
1661
|
|
1664
|
|
|
1662
|
final action = await showDialog(
|
1665
|
final action = await showDialog(
|
|
1663
|
context: context,
|
1666
|
context: context,
|
|
@@ -1667,236 +1670,577 @@ class DialogUtil { |
|
@@ -1667,236 +1670,577 @@ class DialogUtil { |
|
1667
|
// globalState = state;
|
1670
|
// globalState = state;
|
|
1668
|
|
1671
|
|
|
1669
|
return Container(
|
1672
|
return Container(
|
|
1670
|
- margin: EdgeInsets.only(top: ScreenUtil().setWidth(300)),
|
|
|
|
1671
|
padding:
|
1673
|
padding:
|
|
1672
|
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(50)),
|
1674
|
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(50)),
|
|
1673
|
- // height: ScreenUtil().setWidth(326 * 2) +
|
|
|
|
1674
|
- // ScreenUtil().setWidth(250 * 2),
|
1675
|
+ height:
|
|
|
|
1676
|
+ ScreenUtil().setWidth(226 * 2),
|
|
1675
|
decoration: BoxDecoration(
|
1677
|
decoration: BoxDecoration(
|
|
1676
|
borderRadius:
|
1678
|
borderRadius:
|
|
1677
|
BorderRadius.circular(ScreenUtil().setWidth(10))),
|
1679
|
BorderRadius.circular(ScreenUtil().setWidth(10))),
|
|
1678
|
child: Stack(children: [
|
1680
|
child: Stack(children: [
|
|
1679
|
- Column(
|
|
|
|
1680
|
- children: [
|
|
|
|
1681
|
- Card(
|
|
|
|
1682
|
- shape: RoundedRectangleBorder(
|
|
|
|
1683
|
- borderRadius: BorderRadius.all(Radius.circular(
|
|
|
|
1684
|
- ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
1685
|
- child: Stack(
|
|
|
|
1686
|
- overflow: Overflow.visible,
|
1681
|
+ Card(
|
|
|
|
1682
|
+ shape: RoundedRectangleBorder(
|
|
|
|
1683
|
+ borderRadius: BorderRadius.all(
|
|
|
|
1684
|
+ Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
1685
|
+ child: Column(
|
|
|
|
1686
|
+ children: [
|
|
|
|
1687
|
+ VEmptyView(64),
|
|
|
|
1688
|
+ Container(
|
|
|
|
1689
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
1690
|
+ horizontal: ScreenUtil().setWidth(44)),
|
|
|
|
1691
|
+ // height: ScreenUtil().setWidth(48),
|
|
|
|
1692
|
+ alignment: Alignment.center,
|
|
|
|
1693
|
+ child: Text('批量修改人数',
|
|
|
|
1694
|
+ style: TextStyle(
|
|
|
|
1695
|
+ fontWeight: FontWeight.bold,
|
|
|
|
1696
|
+ fontSize: ScreenUtil().setSp(34),
|
|
|
|
1697
|
+ color: MyColours.color_333333)),
|
|
|
|
1698
|
+ ),
|
|
|
|
1699
|
+ VEmptyView(20),
|
|
|
|
1700
|
+ Container(
|
|
|
|
1701
|
+ margin:
|
|
|
|
1702
|
+ EdgeInsets.only(top: ScreenUtil().setWidth(40)),
|
|
|
|
1703
|
+ padding: EdgeInsets.only(
|
|
|
|
1704
|
+ left: ScreenUtil().setWidth(44),
|
|
|
|
1705
|
+ right: ScreenUtil().setWidth(44)),
|
|
|
|
1706
|
+ height: ScreenUtil().setWidth(30 * 2),
|
|
|
|
1707
|
+ child: Row(
|
|
|
|
1708
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
1687
|
children: [
|
1709
|
children: [
|
|
1688
|
- Container(
|
|
|
|
1689
|
- child: Column(
|
|
|
|
1690
|
- children: [
|
|
|
|
1691
|
- VEmptyView(64),
|
|
|
|
1692
|
- Container(
|
|
|
|
1693
|
- padding: EdgeInsets.symmetric(
|
|
|
|
1694
|
- horizontal:
|
|
|
|
1695
|
- ScreenUtil().setWidth(44)),
|
|
|
|
1696
|
- // height: ScreenUtil().setWidth(48),
|
|
|
|
1697
|
- alignment: Alignment.center,
|
|
|
|
1698
|
- child: Text('批量改名',
|
|
|
|
1699
|
- style: TextStyle(
|
|
|
|
1700
|
- fontWeight: FontWeight.bold,
|
|
|
|
1701
|
- fontSize: ScreenUtil().setSp(34),
|
|
|
|
1702
|
- color: MyColours.color_333333)),
|
|
|
|
1703
|
- ),
|
|
|
|
1704
|
- VEmptyView(60),
|
|
|
|
1705
|
- Container(
|
|
|
|
1706
|
- margin: EdgeInsets.symmetric(
|
|
|
|
1707
|
- horizontal:
|
|
|
|
1708
|
- ScreenUtil().setWidth(44)),
|
|
|
|
1709
|
- height: ScreenUtil().setWidth(48 * 2),
|
|
|
|
1710
|
- // margin: EdgeInsets.symmetric(
|
|
|
|
1711
|
- // horizontal:
|
|
|
|
1712
|
- // ScreenUtil().setWidth(40)),
|
|
|
|
1713
|
- decoration: BoxDecoration(
|
|
|
|
1714
|
- color: MyColours.color_f3f3f3,
|
|
|
|
1715
|
- borderRadius: BorderRadius.circular(
|
|
|
|
1716
|
- ScreenUtil().setWidth(10))),
|
|
|
|
1717
|
- child: Row(
|
|
|
|
1718
|
- crossAxisAlignment:
|
|
|
|
1719
|
- CrossAxisAlignment.center,
|
|
|
|
1720
|
- children: [
|
|
|
|
1721
|
- HEmptyView(20),
|
|
|
|
1722
|
- Expanded(
|
|
|
|
1723
|
- child: TextField(
|
|
|
|
1724
|
- controller: controller,
|
|
|
|
1725
|
- maxLines: 1,
|
|
|
|
1726
|
- // //光标颜色
|
|
|
|
1727
|
- // cursorColor:
|
|
|
|
1728
|
- // widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
1729
|
- //输入文本的样式
|
|
|
|
1730
|
- style: TextStyle(
|
|
|
|
1731
|
- fontSize:
|
|
|
|
1732
|
- ScreenUtil().setSp(32),
|
|
|
|
1733
|
- color:
|
|
|
|
1734
|
- MyColours.color_515151),
|
|
|
|
1735
|
-
|
|
|
|
1736
|
- decoration: InputDecoration(
|
|
|
|
1737
|
- contentPadding: EdgeInsets.only(
|
|
|
|
1738
|
- bottom: ScreenUtil()
|
|
|
|
1739
|
- .setWidth(
|
|
|
|
1740
|
- 40)), //设置文字内容与边框距离
|
|
|
|
1741
|
- // enabledBorder: UnderlineInputBorder(
|
|
|
|
1742
|
- // borderSide: BorderSide(
|
|
|
|
1743
|
- // color: MyColours.color_efefef),
|
|
|
|
1744
|
- // ),
|
|
|
|
1745
|
- // focusedBorder: UnderlineInputBorder(
|
|
|
|
1746
|
- // borderSide: BorderSide(
|
|
|
|
1747
|
- // color: MyColours.color_efefef,
|
|
|
|
1748
|
- // width: ScreenUtil().setWidth(2)),
|
|
|
|
1749
|
- // ),
|
|
|
|
1750
|
- // prefixText: '*',
|
|
|
|
1751
|
- // prefixStyle: TextStyle(
|
|
|
|
1752
|
- // fontSize: ScreenUtil().setSp(32),
|
|
|
|
1753
|
- // color: MyColours.color_E95750),
|
|
|
|
1754
|
- border: OutlineInputBorder(
|
|
|
|
1755
|
- borderSide:
|
|
|
|
1756
|
- BorderSide.none),
|
|
|
|
1757
|
- hintText: '桌位名称',
|
|
|
|
1758
|
- hintStyle: TextStyle(
|
|
|
|
1759
|
- color: MyColours.color_BFC4D4,
|
|
|
|
1760
|
- fontSize:
|
|
|
|
1761
|
- ScreenUtil().setSp(32),
|
|
|
|
1762
|
- ),
|
|
|
|
1763
|
- ),
|
|
|
|
1764
|
- onChanged: (value) {
|
|
|
|
1765
|
- state(() {});
|
|
|
|
1766
|
- },
|
|
|
|
1767
|
- onEditingComplete: () {
|
|
|
|
1768
|
- FocusScope.of(context)
|
|
|
|
1769
|
- .requestFocus(
|
|
|
|
1770
|
- FocusNode()); //点击空白处隐藏键盘
|
|
|
|
1771
|
- },
|
|
|
|
1772
|
- keyboardType: TextInputType.text,
|
|
|
|
1773
|
- ),
|
|
|
|
1774
|
- )
|
|
|
|
1775
|
- ],
|
|
|
|
1776
|
- ),
|
|
|
|
1777
|
- ),
|
|
|
|
1778
|
- VEmptyView(26),
|
|
|
|
1779
|
- Row(
|
|
|
|
1780
|
- children: [
|
|
|
|
1781
|
- Row(
|
|
|
|
1782
|
- crossAxisAlignment:
|
|
|
|
1783
|
- CrossAxisAlignment.center,
|
|
|
|
1784
|
- children: [
|
|
|
|
1785
|
- Image.asset(
|
|
|
|
1786
|
- (true
|
|
|
|
1787
|
- ? 'mine_radio_sel'
|
|
|
|
1788
|
- : 'mine_radio_nor'),
|
|
|
|
1789
|
- width:
|
|
|
|
1790
|
- ScreenUtil().setWidth(34)),
|
|
|
|
1791
|
- Text(
|
|
|
|
1792
|
- '跳过4',
|
|
|
|
1793
|
- style: TextStyle(
|
|
|
|
1794
|
- color: MyColours.color_515151,
|
|
|
|
1795
|
- fontSize:
|
|
|
|
1796
|
- ScreenUtil().setSp(32)),
|
|
|
|
1797
|
- )
|
|
|
|
1798
|
- ],
|
|
|
|
1799
|
- ),
|
|
|
|
1800
|
- Row(
|
|
|
|
1801
|
- crossAxisAlignment:
|
|
|
|
1802
|
- CrossAxisAlignment.center,
|
|
|
|
1803
|
- children: [
|
|
|
|
1804
|
- Image.asset(
|
|
|
|
1805
|
- (true
|
|
|
|
1806
|
- ? 'mine_radio_sel'
|
|
|
|
1807
|
- : 'mine_radio_nor'),
|
|
|
|
1808
|
- width:
|
|
|
|
1809
|
- ScreenUtil().setWidth(34)),
|
|
|
|
1810
|
- Text(
|
|
|
|
1811
|
- '跳过7',
|
|
|
|
1812
|
- style: TextStyle(
|
|
|
|
1813
|
- color: MyColours.color_515151,
|
|
|
|
1814
|
- fontSize:
|
|
|
|
1815
|
- ScreenUtil().setSp(32)),
|
|
|
|
1816
|
- )
|
|
|
|
1817
|
- ],
|
|
|
|
1818
|
- ),
|
|
|
|
1819
|
- ],
|
|
|
|
1820
|
- ),
|
|
|
|
1821
|
- MyDivider(double.infinity,
|
|
|
|
1822
|
- ScreenUtil().setWidth(2),
|
|
|
|
1823
|
- color: MyColours.color_f3f3f3),
|
|
|
|
1824
|
- Row(
|
|
|
|
1825
|
- mainAxisAlignment:
|
|
|
|
1826
|
- MainAxisAlignment.spaceBetween,
|
|
|
|
1827
|
- children: [
|
|
|
|
1828
|
- RoundButton(
|
|
|
|
1829
|
- text: '取消',
|
|
|
|
1830
|
- width: (ScreenUtil.screenWidthDp -
|
|
|
|
1831
|
- ScreenUtil()
|
|
|
|
1832
|
- .setWidth(110) *
|
|
|
|
1833
|
- 2) /
|
|
|
|
1834
|
- 2,
|
|
|
|
1835
|
- height:
|
|
|
|
1836
|
- ScreenUtil().setWidth(112),
|
|
|
|
1837
|
- // radius: ScreenUtil().setWidth(10),
|
|
|
|
1838
|
- gradientStart:
|
|
|
|
1839
|
- MyColours.color_ffffff,
|
|
|
|
1840
|
- gradientEnd:
|
|
|
|
1841
|
- MyColours.color_ffffff,
|
|
|
|
1842
|
- textColor: MyColours.color_000000,
|
|
|
|
1843
|
- isBold: false,
|
|
|
|
1844
|
- fontSize: 34,
|
|
|
|
1845
|
- onPressed: () {
|
|
|
|
1846
|
- Navigator.pop(context);
|
|
|
|
1847
|
- }),
|
|
|
|
1848
|
- MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
1849
|
- ScreenUtil().setWidth(112),
|
|
|
|
1850
|
- color: MyColours.color_f3f3f3),
|
|
|
|
1851
|
- RoundButton(
|
|
|
|
1852
|
- text: '确定',
|
|
|
|
1853
|
- width: (ScreenUtil.screenWidthDp -
|
|
|
|
1854
|
- ScreenUtil()
|
|
|
|
1855
|
- .setWidth(110) *
|
|
|
|
1856
|
- 2) /
|
|
|
|
1857
|
- 2,
|
|
|
|
1858
|
- height:
|
|
|
|
1859
|
- ScreenUtil().setWidth(112),
|
|
|
|
1860
|
- // radius: ScreenUtil().setWidth(10),
|
|
|
|
1861
|
- gradientStart:
|
|
|
|
1862
|
- MyColours.color_ffffff,
|
|
|
|
1863
|
- gradientEnd:
|
|
|
|
1864
|
- MyColours.color_ffffff,
|
|
|
|
1865
|
- textColor: controller.text == ''
|
|
|
|
1866
|
- ? MyColours.color_999999
|
|
|
|
1867
|
- : MyColours.color_438E93,
|
|
|
|
1868
|
- fontSize: 34,
|
|
|
|
1869
|
- onPressed: () {
|
|
|
|
1870
|
- if (controller.text.trim() ==
|
|
|
|
1871
|
- '') {
|
|
|
|
1872
|
- Utils.showToast('请输入桌位名称!');
|
|
|
|
1873
|
- return;
|
|
|
|
1874
|
- }
|
|
|
|
1875
|
- // 当前选中区域
|
|
|
|
1876
|
- // areas[currentAreaIndex]
|
|
|
|
1877
|
- //最低人数
|
|
|
|
1878
|
- // pnumMin
|
|
|
|
1879
|
- //最高人数
|
|
|
|
1880
|
- // pnumMax
|
|
|
|
1881
|
-
|
|
|
|
1882
|
- onTap({
|
|
|
|
1883
|
- 'name': controller.text,
|
|
|
|
1884
|
- });
|
|
|
|
1885
|
- Navigator.pop(context);
|
|
|
|
1886
|
- }),
|
|
|
|
1887
|
- ])
|
|
|
|
1888
|
- ],
|
|
|
|
1889
|
- ),
|
1710
|
+ HEmptyView(32),
|
|
|
|
1711
|
+ Text(
|
|
|
|
1712
|
+ '人数',
|
|
|
|
1713
|
+ style: TextStyle(
|
|
|
|
1714
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
1715
|
+ color: MyColours.color_000000),
|
|
1890
|
),
|
1716
|
),
|
|
|
|
1717
|
+ Spacer(),
|
|
|
|
1718
|
+ // Stack(
|
|
|
|
1719
|
+ // overflow: Overflow.visible,
|
|
|
|
1720
|
+ // children: [
|
|
|
|
1721
|
+ btnChooseTableManagePnum(
|
|
|
|
1722
|
+ pnumMin, 'min', ScreenUtil().setWidth(54 * 2),
|
|
|
|
1723
|
+ (value) {
|
|
|
|
1724
|
+ state(() {
|
|
|
|
1725
|
+ showPnumMax = true;
|
|
|
|
1726
|
+ showPnumMin = !showPnumMin;
|
|
|
|
1727
|
+ });
|
|
|
|
1728
|
+ }),
|
|
|
|
1729
|
+ HEmptyView(40),
|
|
|
|
1730
|
+ Text(
|
|
|
|
1731
|
+ '至',
|
|
|
|
1732
|
+ style: TextStyle(
|
|
|
|
1733
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
1734
|
+ color: MyColours.color_000000),
|
|
|
|
1735
|
+ ),
|
|
|
|
1736
|
+ HEmptyView(40),
|
|
|
|
1737
|
+ btnChooseTableManagePnum(
|
|
|
|
1738
|
+ pnumMax, 'max', ScreenUtil().setWidth(54 * 2),
|
|
|
|
1739
|
+ (value) {
|
|
|
|
1740
|
+ state(() {
|
|
|
|
1741
|
+ showPnumMin = true;
|
|
|
|
1742
|
+ showPnumMax = !showPnumMax;
|
|
|
|
1743
|
+ });
|
|
|
|
1744
|
+ }),
|
|
|
|
1745
|
+ HEmptyView(32),
|
|
1891
|
],
|
1746
|
],
|
|
1892
|
- )),
|
|
|
|
1893
|
- ],
|
1747
|
+ ),
|
|
|
|
1748
|
+ ),
|
|
|
|
1749
|
+ VEmptyView(102),
|
|
|
|
1750
|
+ MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
|
|
1751
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
1752
|
+ Row(
|
|
|
|
1753
|
+ // mainAxisAlignment:
|
|
|
|
1754
|
+ // MainAxisAlignment.spaceBetween,
|
|
|
|
1755
|
+ children: [
|
|
|
|
1756
|
+ RoundButton(
|
|
|
|
1757
|
+ text: '取消',
|
|
|
|
1758
|
+ width: (ScreenUtil.screenWidthDp -
|
|
|
|
1759
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
1760
|
+ 2,
|
|
|
|
1761
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
1762
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
1763
|
+ gradientStart: MyColours.color_ffffff,
|
|
|
|
1764
|
+ gradientEnd: MyColours.color_ffffff,
|
|
|
|
1765
|
+ textColor: MyColours.color_000000,
|
|
|
|
1766
|
+ isBold: false,
|
|
|
|
1767
|
+ fontSize: 34,
|
|
|
|
1768
|
+ onPressed: () {
|
|
|
|
1769
|
+ Navigator.pop(context);
|
|
|
|
1770
|
+ }),
|
|
|
|
1771
|
+ MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
1772
|
+ ScreenUtil().setWidth(112),
|
|
|
|
1773
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
1774
|
+ RoundButton(
|
|
|
|
1775
|
+ text: '确定',
|
|
|
|
1776
|
+ width: (ScreenUtil.screenWidthDp -
|
|
|
|
1777
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
1778
|
+ 2,
|
|
|
|
1779
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
1780
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
1781
|
+ gradientStart: MyColours.color_ffffff,
|
|
|
|
1782
|
+ gradientEnd: MyColours.color_ffffff,
|
|
|
|
1783
|
+ textColor: pnumMax == '' || pnumMin == ''
|
|
|
|
1784
|
+ ? MyColours.color_999999
|
|
|
|
1785
|
+ : MyColours.color_438E93,
|
|
|
|
1786
|
+ fontSize: 34,
|
|
|
|
1787
|
+ onPressed: () {
|
|
|
|
1788
|
+ if (pnumMax == '' || pnumMin == '') {
|
|
|
|
1789
|
+ Utils.showToast('请选择人数!');
|
|
|
|
1790
|
+ return;
|
|
|
|
1791
|
+ }
|
|
|
|
1792
|
+ // 当前选中区域
|
|
|
|
1793
|
+ // areas[currentAreaIndex]
|
|
|
|
1794
|
+ //最低人数
|
|
|
|
1795
|
+ // pnumMin
|
|
|
|
1796
|
+ //最高人数
|
|
|
|
1797
|
+ // pnumMax
|
|
|
|
1798
|
+
|
|
|
|
1799
|
+ onTap({
|
|
|
|
1800
|
+ 'pnumMin': pnumMin,
|
|
|
|
1801
|
+ 'pnumMax': pnumMax,
|
|
|
|
1802
|
+ });
|
|
|
|
1803
|
+ Navigator.pop(context);
|
|
|
|
1804
|
+ }),
|
|
|
|
1805
|
+ ])
|
|
|
|
1806
|
+ ],
|
|
|
|
1807
|
+ ),
|
|
1894
|
),
|
1808
|
),
|
|
|
|
1809
|
+ Positioned(
|
|
|
|
1810
|
+ left: ScreenUtil().setWidth(0),
|
|
|
|
1811
|
+ top: ScreenUtil().setWidth(90 * 2),
|
|
|
|
1812
|
+ child: Offstage(
|
|
|
|
1813
|
+ offstage: showPnumMin,
|
|
|
|
1814
|
+ child: Material(
|
|
|
|
1815
|
+ color: Colors.transparent,
|
|
|
|
1816
|
+ child: selectWidget(pnum, (index) {
|
|
|
|
1817
|
+ state(() {
|
|
|
|
1818
|
+ showPnumMin = !showPnumMin;
|
|
|
|
1819
|
+ pnumMin = pnum[index];
|
|
|
|
1820
|
+ });
|
|
|
|
1821
|
+ }),
|
|
|
|
1822
|
+ ))),
|
|
|
|
1823
|
+ Positioned(
|
|
|
|
1824
|
+ left: ScreenUtil().setWidth(106 * 2),
|
|
|
|
1825
|
+ top: ScreenUtil().setWidth(90 * 2),
|
|
|
|
1826
|
+ child: Material(
|
|
|
|
1827
|
+ color: Colors.transparent,
|
|
|
|
1828
|
+ child: Offstage(
|
|
|
|
1829
|
+ offstage: showPnumMax,
|
|
|
|
1830
|
+ child: selectWidget(pnum, (index) {
|
|
|
|
1831
|
+ state(() {
|
|
|
|
1832
|
+ showPnumMax = !showPnumMax;
|
|
|
|
1833
|
+ pnumMax = pnum[index];
|
|
|
|
1834
|
+ });
|
|
|
|
1835
|
+ }),
|
|
|
|
1836
|
+ ))),
|
|
1895
|
]));
|
1837
|
]));
|
|
1896
|
}));
|
1838
|
}));
|
|
1897
|
});
|
1839
|
});
|
|
1898
|
}
|
1840
|
}
|
|
1899
|
|
1841
|
|
|
|
|
1842
|
+ ///批量修改桌位类型
|
|
|
|
1843
|
+ static Future openMyTableManageModifyTableTypeDialog(
|
|
|
|
1844
|
+ BuildContext context,
|
|
|
|
1845
|
+ List<String> baojianList, {
|
|
|
|
1846
|
+ String tidStr,
|
|
|
|
1847
|
+ CustomCallBackMap onTap,
|
|
|
|
1848
|
+ }) async {
|
|
|
|
1849
|
+ bool showBaojian = true;
|
|
|
|
1850
|
+
|
|
|
|
1851
|
+ int currentBaojianIndex = tidStr == null
|
|
|
|
1852
|
+ ? 0
|
|
|
|
1853
|
+ : baojianList.indexWhere((element) => element == tidStr) ?? 0;
|
|
|
|
1854
|
+ String baojian = baojianList[currentBaojianIndex];
|
|
|
|
1855
|
+
|
|
|
|
1856
|
+ final action = await showDialog(
|
|
|
|
1857
|
+ context: context,
|
|
|
|
1858
|
+ barrierDismissible: false,
|
|
|
|
1859
|
+ builder: (BuildContext context) {
|
|
|
|
1860
|
+ return Center(child: StatefulBuilder(builder: (context, state) {
|
|
|
|
1861
|
+ // globalState = state;
|
|
|
|
1862
|
+
|
|
|
|
1863
|
+ return Container(
|
|
|
|
1864
|
+ padding:
|
|
|
|
1865
|
+ EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(50)),
|
|
|
|
1866
|
+ height: ScreenUtil().setWidth(202 * 2),
|
|
|
|
1867
|
+ decoration: BoxDecoration(
|
|
|
|
1868
|
+ borderRadius:
|
|
|
|
1869
|
+ BorderRadius.circular(ScreenUtil().setWidth(10))),
|
|
|
|
1870
|
+ child: Card(
|
|
|
|
1871
|
+ shape: RoundedRectangleBorder(
|
|
|
|
1872
|
+ borderRadius: BorderRadius.all(
|
|
|
|
1873
|
+ Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
1874
|
+ child: Stack(
|
|
|
|
1875
|
+ overflow: Overflow.visible,
|
|
|
|
1876
|
+ children: [
|
|
|
|
1877
|
+ Container(
|
|
|
|
1878
|
+ child: Column(
|
|
|
|
1879
|
+ children: [
|
|
|
|
1880
|
+ VEmptyView(64),
|
|
|
|
1881
|
+ Container(
|
|
|
|
1882
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
1883
|
+ horizontal: ScreenUtil().setWidth(44)),
|
|
|
|
1884
|
+ // height: ScreenUtil().setWidth(48),
|
|
|
|
1885
|
+ alignment: Alignment.center,
|
|
|
|
1886
|
+ child: Text('批量修改桌位类型',
|
|
|
|
1887
|
+ style: TextStyle(
|
|
|
|
1888
|
+ fontWeight: FontWeight.bold,
|
|
|
|
1889
|
+ fontSize: ScreenUtil().setSp(34),
|
|
|
|
1890
|
+ color: MyColours.color_333333)),
|
|
|
|
1891
|
+ ),
|
|
|
|
1892
|
+ VEmptyView(60),
|
|
|
|
1893
|
+ InkWell(
|
|
|
|
1894
|
+ onTap: () {
|
|
|
|
1895
|
+ state(() {
|
|
|
|
1896
|
+ showBaojian = !showBaojian;
|
|
|
|
1897
|
+ });
|
|
|
|
1898
|
+ },
|
|
|
|
1899
|
+ child: Container(
|
|
|
|
1900
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
1901
|
+ horizontal: ScreenUtil().setWidth(44)),
|
|
|
|
1902
|
+ height: ScreenUtil().setWidth(30 * 2),
|
|
|
|
1903
|
+ child: Row(
|
|
|
|
1904
|
+ crossAxisAlignment:
|
|
|
|
1905
|
+ CrossAxisAlignment.center,
|
|
|
|
1906
|
+ children: [
|
|
|
|
1907
|
+ HEmptyView(32),
|
|
|
|
1908
|
+ Text(
|
|
|
|
1909
|
+ '桌位类型',
|
|
|
|
1910
|
+ style: TextStyle(
|
|
|
|
1911
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
1912
|
+ color: MyColours.color_000000),
|
|
|
|
1913
|
+ ),
|
|
|
|
1914
|
+ Spacer(),
|
|
|
|
1915
|
+ // Stack(
|
|
|
|
1916
|
+ // overflow: Overflow.visible,
|
|
|
|
1917
|
+ // children: [
|
|
|
|
1918
|
+ Text(
|
|
|
|
1919
|
+ baojian,
|
|
|
|
1920
|
+ style: TextStyle(
|
|
|
|
1921
|
+ color: MyColours.color_515151,
|
|
|
|
1922
|
+ fontSize: ScreenUtil().setSp(32)),
|
|
|
|
1923
|
+ ),
|
|
|
|
1924
|
+ HEmptyView(12),
|
|
|
|
1925
|
+ Image.asset(
|
|
|
|
1926
|
+ Utils.getImgPath(
|
|
|
|
1927
|
+ 'table_manage_arrow_down'),
|
|
|
|
1928
|
+ width: ScreenUtil().setWidth(40)),
|
|
|
|
1929
|
+ HEmptyView(32),
|
|
|
|
1930
|
+ ],
|
|
|
|
1931
|
+ ),
|
|
|
|
1932
|
+ )),
|
|
|
|
1933
|
+ VEmptyView(52),
|
|
|
|
1934
|
+ MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
|
|
1935
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
1936
|
+ Row(
|
|
|
|
1937
|
+ // mainAxisAlignment:
|
|
|
|
1938
|
+ // MainAxisAlignment.spaceBetween,
|
|
|
|
1939
|
+ children: [
|
|
|
|
1940
|
+ RoundButton(
|
|
|
|
1941
|
+ text: '取消',
|
|
|
|
1942
|
+ width: (ScreenUtil.screenWidthDp -
|
|
|
|
1943
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
1944
|
+ 2,
|
|
|
|
1945
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
1946
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
1947
|
+ gradientStart: MyColours.color_ffffff,
|
|
|
|
1948
|
+ gradientEnd: MyColours.color_ffffff,
|
|
|
|
1949
|
+ textColor: MyColours.color_000000,
|
|
|
|
1950
|
+ isBold: false,
|
|
|
|
1951
|
+ fontSize: 34,
|
|
|
|
1952
|
+ onPressed: () {
|
|
|
|
1953
|
+ Navigator.pop(context);
|
|
|
|
1954
|
+ }),
|
|
|
|
1955
|
+ MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
1956
|
+ ScreenUtil().setWidth(112),
|
|
|
|
1957
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
1958
|
+ RoundButton(
|
|
|
|
1959
|
+ text: '确定',
|
|
|
|
1960
|
+ width: (ScreenUtil.screenWidthDp -
|
|
|
|
1961
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
1962
|
+ 2,
|
|
|
|
1963
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
1964
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
1965
|
+ gradientStart: MyColours.color_ffffff,
|
|
|
|
1966
|
+ gradientEnd: MyColours.color_ffffff,
|
|
|
|
1967
|
+ textColor: MyColours.color_438E93,
|
|
|
|
1968
|
+ fontSize: 34,
|
|
|
|
1969
|
+ onPressed: () {
|
|
|
|
1970
|
+ onTap({
|
|
|
|
1971
|
+ 'bjtype':
|
|
|
|
1972
|
+ baojianList[currentBaojianIndex],
|
|
|
|
1973
|
+ });
|
|
|
|
1974
|
+ Navigator.pop(context);
|
|
|
|
1975
|
+ }),
|
|
|
|
1976
|
+ ])
|
|
|
|
1977
|
+ ],
|
|
|
|
1978
|
+ ),
|
|
|
|
1979
|
+ ),
|
|
|
|
1980
|
+ Positioned(
|
|
|
|
1981
|
+ left: ScreenUtil().setWidth(100 * 2),
|
|
|
|
1982
|
+ top: ScreenUtil().setWidth(65 * 2),
|
|
|
|
1983
|
+ child: Offstage(
|
|
|
|
1984
|
+ offstage: showBaojian,
|
|
|
|
1985
|
+ child: tableManageSelectWidget(baojianList, 210,
|
|
|
|
1986
|
+ (index) {
|
|
|
|
1987
|
+ state(() {
|
|
|
|
1988
|
+ showBaojian = !showBaojian;
|
|
|
|
1989
|
+ currentBaojianIndex = index;
|
|
|
|
1990
|
+ baojian = baojianList[currentBaojianIndex];
|
|
|
|
1991
|
+ });
|
|
|
|
1992
|
+ }),
|
|
|
|
1993
|
+ )),
|
|
|
|
1994
|
+ ],
|
|
|
|
1995
|
+ )),
|
|
|
|
1996
|
+ );
|
|
|
|
1997
|
+ }));
|
|
|
|
1998
|
+ });
|
|
|
|
1999
|
+ }
|
|
|
|
2000
|
+
|
|
|
|
2001
|
+ ///批量改名
|
|
|
|
2002
|
+
|
|
|
|
2003
|
+ static Future openMyTableManageModifyTableNameDialog(
|
|
|
|
2004
|
+ BuildContext context, {
|
|
|
|
2005
|
+ CustomCallBackMap onTap,
|
|
|
|
2006
|
+ }) async {
|
|
|
|
2007
|
+ final action = await showDialog(
|
|
|
|
2008
|
+ context: context,
|
|
|
|
2009
|
+ barrierDismissible: false,
|
|
|
|
2010
|
+ builder: (BuildContext context) {
|
|
|
|
2011
|
+ TextEditingController controller = TextEditingController();
|
|
|
|
2012
|
+ bool jumpFour = false;
|
|
|
|
2013
|
+ bool jumpSeven = false;
|
|
|
|
2014
|
+ return StatefulBuilder(builder: (context, state) {
|
|
|
|
2015
|
+ // globalState = state;
|
|
|
|
2016
|
+
|
|
|
|
2017
|
+ return Center(
|
|
|
|
2018
|
+ child: Container(
|
|
|
|
2019
|
+ // margin: EdgeInsets.only(top: ScreenUtil().setWidth(500)),
|
|
|
|
2020
|
+ padding:
|
|
|
|
2021
|
+ EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(50)),
|
|
|
|
2022
|
+ height: ScreenUtil().setWidth(286 * 2),
|
|
|
|
2023
|
+ decoration: BoxDecoration(
|
|
|
|
2024
|
+ borderRadius:
|
|
|
|
2025
|
+ BorderRadius.circular(ScreenUtil().setWidth(10))),
|
|
|
|
2026
|
+ child: Card(
|
|
|
|
2027
|
+ shape: RoundedRectangleBorder(
|
|
|
|
2028
|
+ borderRadius: BorderRadius.all(
|
|
|
|
2029
|
+ Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
2030
|
+ child: Column(
|
|
|
|
2031
|
+ children: [
|
|
|
|
2032
|
+ VEmptyView(84),
|
|
|
|
2033
|
+ Container(
|
|
|
|
2034
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
2035
|
+ horizontal: ScreenUtil().setWidth(44)),
|
|
|
|
2036
|
+ // height: ScreenUtil().setWidth(48),
|
|
|
|
2037
|
+ alignment: Alignment.center,
|
|
|
|
2038
|
+ child: Text('批量改名',
|
|
|
|
2039
|
+ style: TextStyle(
|
|
|
|
2040
|
+ fontWeight: FontWeight.bold,
|
|
|
|
2041
|
+ fontSize: ScreenUtil().setSp(34),
|
|
|
|
2042
|
+ color: MyColours.color_333333)),
|
|
|
|
2043
|
+ ),
|
|
|
|
2044
|
+ VEmptyView(40),
|
|
|
|
2045
|
+ Container(
|
|
|
|
2046
|
+ margin: EdgeInsets.symmetric(
|
|
|
|
2047
|
+ horizontal: ScreenUtil().setWidth(44)),
|
|
|
|
2048
|
+ height: ScreenUtil().setWidth(48 * 2),
|
|
|
|
2049
|
+ // margin: EdgeInsets.symmetric(
|
|
|
|
2050
|
+ // horizontal:
|
|
|
|
2051
|
+ // ScreenUtil().setWidth(40)),
|
|
|
|
2052
|
+ decoration: BoxDecoration(
|
|
|
|
2053
|
+ color: MyColours.color_f3f3f3,
|
|
|
|
2054
|
+ borderRadius:
|
|
|
|
2055
|
+ BorderRadius.circular(ScreenUtil().setWidth(10))),
|
|
|
|
2056
|
+ child: Row(
|
|
|
|
2057
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
2058
|
+ children: [
|
|
|
|
2059
|
+ HEmptyView(20),
|
|
|
|
2060
|
+ Expanded(
|
|
|
|
2061
|
+ child: TextField(
|
|
|
|
2062
|
+ controller: controller,
|
|
|
|
2063
|
+ maxLines: 1,
|
|
|
|
2064
|
+ // //光标颜色
|
|
|
|
2065
|
+ // cursorColor:
|
|
|
|
2066
|
+ // widget.isSelect ? Colors.white : MyColours.color_199095,
|
|
|
|
2067
|
+ //输入文本的样式
|
|
|
|
2068
|
+ style: TextStyle(
|
|
|
|
2069
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
2070
|
+ color: MyColours.color_515151),
|
|
|
|
2071
|
+
|
|
|
|
2072
|
+ decoration: InputDecoration(
|
|
|
|
2073
|
+ contentPadding: EdgeInsets.only(
|
|
|
|
2074
|
+ bottom: ScreenUtil()
|
|
|
|
2075
|
+ .setWidth(40)), //设置文字内容与边框距离
|
|
|
|
2076
|
+ // enabledBorder: UnderlineInputBorder(
|
|
|
|
2077
|
+ // borderSide: BorderSide(
|
|
|
|
2078
|
+ // color: MyColours.color_efefef),
|
|
|
|
2079
|
+ // ),
|
|
|
|
2080
|
+ // focusedBorder: UnderlineInputBorder(
|
|
|
|
2081
|
+ // borderSide: BorderSide(
|
|
|
|
2082
|
+ // color: MyColours.color_efefef,
|
|
|
|
2083
|
+ // width: ScreenUtil().setWidth(2)),
|
|
|
|
2084
|
+ // ),
|
|
|
|
2085
|
+ // prefixText: '*',
|
|
|
|
2086
|
+ // prefixStyle: TextStyle(
|
|
|
|
2087
|
+ // fontSize: ScreenUtil().setSp(32),
|
|
|
|
2088
|
+ // color: MyColours.color_E95750),
|
|
|
|
2089
|
+ border: OutlineInputBorder(
|
|
|
|
2090
|
+ borderSide: BorderSide.none),
|
|
|
|
2091
|
+ hintText: '桌位名称',
|
|
|
|
2092
|
+ hintStyle: TextStyle(
|
|
|
|
2093
|
+ color: MyColours.color_BFC4D4,
|
|
|
|
2094
|
+ fontSize: ScreenUtil().setSp(32),
|
|
|
|
2095
|
+ ),
|
|
|
|
2096
|
+ ),
|
|
|
|
2097
|
+ onChanged: (value) {
|
|
|
|
2098
|
+ state(() {});
|
|
|
|
2099
|
+ },
|
|
|
|
2100
|
+ onEditingComplete: () {
|
|
|
|
2101
|
+ FocusScope.of(context)
|
|
|
|
2102
|
+ .requestFocus(FocusNode()); //点击空白处隐藏键盘
|
|
|
|
2103
|
+ },
|
|
|
|
2104
|
+ keyboardType: TextInputType.text,
|
|
|
|
2105
|
+ ),
|
|
|
|
2106
|
+ )
|
|
|
|
2107
|
+ ],
|
|
|
|
2108
|
+ ),
|
|
|
|
2109
|
+ ),
|
|
|
|
2110
|
+ VEmptyView(36),
|
|
|
|
2111
|
+ Container(
|
|
|
|
2112
|
+ margin: EdgeInsets.symmetric(
|
|
|
|
2113
|
+ horizontal: ScreenUtil().setWidth(44)),
|
|
|
|
2114
|
+ child: Row(
|
|
|
|
2115
|
+ children: [
|
|
|
|
2116
|
+ InkWell(
|
|
|
|
2117
|
+ onTap: () {
|
|
|
|
2118
|
+ state(() {
|
|
|
|
2119
|
+ jumpFour = !jumpFour;
|
|
|
|
2120
|
+ });
|
|
|
|
2121
|
+ },
|
|
|
|
2122
|
+ child: Row(
|
|
|
|
2123
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
2124
|
+ children: [
|
|
|
|
2125
|
+ Image.asset(
|
|
|
|
2126
|
+ Utils.getImgPath((jumpFour
|
|
|
|
2127
|
+ ? 'mine_radio_sel'
|
|
|
|
2128
|
+ : 'mine_radio_nor')),
|
|
|
|
2129
|
+ width: ScreenUtil().setWidth(34)),
|
|
|
|
2130
|
+ HEmptyView(4),
|
|
|
|
2131
|
+ Text(
|
|
|
|
2132
|
+ '跳过4',
|
|
|
|
2133
|
+ style: TextStyle(
|
|
|
|
2134
|
+ color: MyColours.color_515151,
|
|
|
|
2135
|
+ fontSize: ScreenUtil().setSp(32)),
|
|
|
|
2136
|
+ )
|
|
|
|
2137
|
+ ],
|
|
|
|
2138
|
+ )),
|
|
|
|
2139
|
+ HEmptyView(50),
|
|
|
|
2140
|
+ InkWell(
|
|
|
|
2141
|
+ onTap: () {
|
|
|
|
2142
|
+ state(() {
|
|
|
|
2143
|
+ jumpSeven = !jumpSeven;
|
|
|
|
2144
|
+ });
|
|
|
|
2145
|
+ },
|
|
|
|
2146
|
+ child: Row(
|
|
|
|
2147
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
2148
|
+ children: [
|
|
|
|
2149
|
+ Image.asset(
|
|
|
|
2150
|
+ Utils.getImgPath((jumpSeven
|
|
|
|
2151
|
+ ? 'mine_radio_sel'
|
|
|
|
2152
|
+ : 'mine_radio_nor')),
|
|
|
|
2153
|
+ width: ScreenUtil().setWidth(34)),
|
|
|
|
2154
|
+ HEmptyView(4),
|
|
|
|
2155
|
+ Text(
|
|
|
|
2156
|
+ '跳过7',
|
|
|
|
2157
|
+ style: TextStyle(
|
|
|
|
2158
|
+ color: MyColours.color_515151,
|
|
|
|
2159
|
+ fontSize: ScreenUtil().setSp(32)),
|
|
|
|
2160
|
+ )
|
|
|
|
2161
|
+ ],
|
|
|
|
2162
|
+ )),
|
|
|
|
2163
|
+ ],
|
|
|
|
2164
|
+ )),
|
|
|
|
2165
|
+ VEmptyView(26),
|
|
|
|
2166
|
+ Container(
|
|
|
|
2167
|
+ margin: EdgeInsets.symmetric(
|
|
|
|
2168
|
+ horizontal: ScreenUtil().setWidth(44)),
|
|
|
|
2169
|
+ child: Row(children: [
|
|
|
|
2170
|
+ Image.asset(Utils.getImgPath('mine_radio_nor'),
|
|
|
|
2171
|
+ width: ScreenUtil().setWidth(36)),
|
|
|
|
2172
|
+ HEmptyView(8),
|
|
|
|
2173
|
+ Text(
|
|
|
|
2174
|
+ '批量改名累加只适合纯数字桌位,如101',
|
|
|
|
2175
|
+ style: TextStyle(
|
|
|
|
2176
|
+ color: MyColours.color_438E93,
|
|
|
|
2177
|
+ fontSize: ScreenUtil().setSp(24)),
|
|
|
|
2178
|
+ )
|
|
|
|
2179
|
+ ])),
|
|
|
|
2180
|
+ VEmptyView(50),
|
|
|
|
2181
|
+ MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
|
|
2182
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
2183
|
+ Row(
|
|
|
|
2184
|
+ // mainAxisAlignment:
|
|
|
|
2185
|
+ // MainAxisAlignment.spaceBetween,
|
|
|
|
2186
|
+ children: [
|
|
|
|
2187
|
+ RoundButton(
|
|
|
|
2188
|
+ text: '取消',
|
|
|
|
2189
|
+ width: (ScreenUtil.screenWidthDp -
|
|
|
|
2190
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
2191
|
+ 2,
|
|
|
|
2192
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
2193
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
2194
|
+ gradientStart: MyColours.color_ffffff,
|
|
|
|
2195
|
+ gradientEnd: MyColours.color_ffffff,
|
|
|
|
2196
|
+ textColor: MyColours.color_000000,
|
|
|
|
2197
|
+ isBold: false,
|
|
|
|
2198
|
+ fontSize: 34,
|
|
|
|
2199
|
+ onPressed: () {
|
|
|
|
2200
|
+ Navigator.pop(context);
|
|
|
|
2201
|
+ }),
|
|
|
|
2202
|
+ MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
2203
|
+ ScreenUtil().setWidth(112),
|
|
|
|
2204
|
+ color: MyColours.color_f3f3f3),
|
|
|
|
2205
|
+ RoundButton(
|
|
|
|
2206
|
+ text: '确定',
|
|
|
|
2207
|
+ width: (ScreenUtil.screenWidthDp -
|
|
|
|
2208
|
+ ScreenUtil().setWidth(62) * 2) /
|
|
|
|
2209
|
+ 2,
|
|
|
|
2210
|
+ height: ScreenUtil().setWidth(112),
|
|
|
|
2211
|
+ // radius: ScreenUtil().setWidth(10),
|
|
|
|
2212
|
+ gradientStart: MyColours.color_ffffff,
|
|
|
|
2213
|
+ gradientEnd: MyColours.color_ffffff,
|
|
|
|
2214
|
+ textColor: controller.text == ''
|
|
|
|
2215
|
+ ? MyColours.color_999999
|
|
|
|
2216
|
+ : MyColours.color_438E93,
|
|
|
|
2217
|
+ fontSize: 34,
|
|
|
|
2218
|
+ onPressed: () {
|
|
|
|
2219
|
+ if (controller.text.trim() == '') {
|
|
|
|
2220
|
+ Utils.showToast('请输入桌位名称!');
|
|
|
|
2221
|
+ return;
|
|
|
|
2222
|
+ }
|
|
|
|
2223
|
+ // 当前选中区域
|
|
|
|
2224
|
+ // areas[currentAreaIndex]
|
|
|
|
2225
|
+ //最低人数
|
|
|
|
2226
|
+ // pnumMin
|
|
|
|
2227
|
+ //最高人数
|
|
|
|
2228
|
+ // pnumMax
|
|
|
|
2229
|
+
|
|
|
|
2230
|
+ onTap({
|
|
|
|
2231
|
+ 'name': controller.text,
|
|
|
|
2232
|
+ });
|
|
|
|
2233
|
+ Navigator.pop(context);
|
|
|
|
2234
|
+ }),
|
|
|
|
2235
|
+ ])
|
|
|
|
2236
|
+ ],
|
|
|
|
2237
|
+ ),
|
|
|
|
2238
|
+ ),
|
|
|
|
2239
|
+ ));
|
|
|
|
2240
|
+ });
|
|
|
|
2241
|
+ });
|
|
|
|
2242
|
+ }
|
|
|
|
2243
|
+
|
|
1900
|
///输入框
|
2244
|
///输入框
|
|
1901
|
static Widget textfield(
|
2245
|
static Widget textfield(
|
|
1902
|
BuildContext context,
|
2246
|
BuildContext context,
|