Commit 86e2a37e7da34331c08e85122ebe1e62f7605c12

Authored by wdn127929
1 parent 46674069

清空&关闭

... ... @@ -810,7 +810,11 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
context, FromPage.FromPageMyPage);
}
},
child: _item(Utils.getImgPath('grxx'), '个人信息',
child: _item(
!Utils.getAuthority(context, '个人信息')
? Utils.getImgPath('grxx_un')
: Utils.getImgPath('grxx'),
'个人信息',
isRowLow:
!Utils.getAuthority(context, '个人信息')),
),
... ... @@ -821,7 +825,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
}
},
child: _item(
Utils.getImgPath('wdkq'), '我的客情',
!Utils.getAuthority(context, '我的客情')
? Utils.getImgPath('wdkq_un')
: Utils.getImgPath('wdkq'),
'我的客情',
isRowLow: !Utils.getAuthority(
context, '我的客情'))),
InkWell(
... ... @@ -830,7 +837,11 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
NavigatorUtil.goCouponPage(context);
}
},
child: _item(Utils.getImgPath('yhq'), '优惠券',
child: _item(
!Utils.getAuthority(context, '优惠券')
? Utils.getImgPath('yhq_un')
: Utils.getImgPath('yhq'),
'优惠券',
isRowLow: !Utils.getAuthority(
context, '优惠券'))),
InkWell(
... ... @@ -841,7 +852,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
}
},
child: _item(
Utils.getImgPath('cybz'), '常用备注',
!Utils.getAuthority(context, '常用备注')
? Utils.getImgPath('cybz_un')
: Utils.getImgPath('cybz'),
'常用备注',
isRowLow: !Utils.getAuthority(
context, '常用备注'))),
],
... ... @@ -860,7 +874,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
}
},
child: _item(
Utils.getImgPath('cdgl'), '套餐排菜',
!Utils.getAuthority(context, '套餐排菜')
? Utils.getImgPath('cdgl_un')
: Utils.getImgPath('cdgl'),
'套餐排菜',
isRowLow: !Utils.getAuthority(
context, '套餐排菜'))),
InkWell(
... ... @@ -873,7 +890,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
}
},
child: _item(
Utils.getImgPath('khcj'), '客户存酒',
!Utils.getAuthority(context, '客户存酒')
? Utils.getImgPath('khcj_un')
: Utils.getImgPath('khcj'),
'客户存酒',
isRowLow: !Utils.getAuthority(
context, '客户存酒'))),
InkWell(
... ...
... ... @@ -1741,6 +1741,22 @@ class TableManagerPageState extends State<TableManagerPage> {
_clearData();
},
child: Container(
padding: EdgeInsets.symmetric(
vertical: ScreenUtil().setWidth(30),
horizontal: ScreenUtil().setWidth(40)),
// color: Colors.red,
child: Image.asset(
Utils.getImgPath('close'),
width: ScreenUtil().setWidth(28),
height: ScreenUtil().setWidth(28),
)))),
Positioned(
left: 0,
child: InkWell(
onTap: () {
_clearData();
},
child: Container(
padding: EdgeInsets.symmetric(
vertical: ScreenUtil().setWidth(30),
horizontal: ScreenUtil().setWidth(40)),
... ... @@ -2161,6 +2177,22 @@ class TableManagerPageState extends State<TableManagerPage> {
vertical: ScreenUtil().setWidth(30),
horizontal: ScreenUtil().setWidth(40)),
// color: Colors.red,
child: Image.asset(
Utils.getImgPath('close'),
width: ScreenUtil().setWidth(28),
height: ScreenUtil().setWidth(28),
)))),
Positioned(
left: 0,
child: InkWell(
onTap: () {
_clearData();
},
child: Container(
padding: EdgeInsets.symmetric(
vertical: ScreenUtil().setWidth(30),
horizontal: ScreenUtil().setWidth(40)),
// color: Colors.red,
child: Text(
'清空',
style: TextStyle(
... ...