修改锁设置删除锁弹窗提示
This commit is contained in:
parent
cd3f405138
commit
1136402428
@ -522,7 +522,8 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
|
|||||||
context: widgetContext,
|
context: widgetContext,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return CupertinoAlertDialog(
|
return CupertinoAlertDialog(
|
||||||
title: const Text('创建公司号,考勤功能才能使用'),
|
title: const Text("提示"),
|
||||||
|
content: const Text('创建公司号,考勤功能才能使用'),
|
||||||
actions: [
|
actions: [
|
||||||
CupertinoDialogAction(
|
CupertinoDialogAction(
|
||||||
child: Text(TranslationLoader.lanKeys!.cancel!.tr),
|
child: Text(TranslationLoader.lanKeys!.cancel!.tr),
|
||||||
@ -548,19 +549,43 @@ class _LockSetPageState extends State<LockSetPage> with RouteAware {
|
|||||||
void showDeletAlertDialog(
|
void showDeletAlertDialog(
|
||||||
BuildContext context,
|
BuildContext context,
|
||||||
) {
|
) {
|
||||||
showDialog(
|
// showDialog(
|
||||||
|
// context: context,
|
||||||
|
// builder: (BuildContext context) {
|
||||||
|
// return ShowIosTipView(
|
||||||
|
// title: "提示",
|
||||||
|
// tipTitle: "删除锁后,所有信息都会一起删除,确定删除锁吗?",
|
||||||
|
// sureClick: () {
|
||||||
|
// Navigator.pop(context);
|
||||||
|
// showDeletPasswordAlertDialog(context);
|
||||||
|
// },
|
||||||
|
// cancelClick: () {
|
||||||
|
// Navigator.pop(context);
|
||||||
|
// },
|
||||||
|
// );
|
||||||
|
// },
|
||||||
|
// );
|
||||||
|
showCupertinoDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (context) {
|
||||||
return ShowIosTipView(
|
return CupertinoAlertDialog(
|
||||||
title: "提示",
|
title: const Text("提示"),
|
||||||
tipTitle: "删除锁后,所有信息都会一起删除,确定删除锁吗?",
|
content: const Text('删除锁后,所有信息都会一起删除,确定删除锁吗?'),
|
||||||
sureClick: () {
|
actions: [
|
||||||
Navigator.pop(context);
|
CupertinoDialogAction(
|
||||||
showDeletPasswordAlertDialog(context);
|
child: Text(TranslationLoader.lanKeys!.cancel!.tr),
|
||||||
},
|
onPressed: () {
|
||||||
cancelClick: () {
|
Navigator.pop(context);
|
||||||
Navigator.pop(context);
|
},
|
||||||
},
|
),
|
||||||
|
CupertinoDialogAction(
|
||||||
|
child: Text(TranslationLoader.lanKeys!.sure!.tr),
|
||||||
|
onPressed: () {
|
||||||
|
Navigator.pop(context);
|
||||||
|
showDeletPasswordAlertDialog(context);
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user