From 1136402428f141e5eb88fc3f451b3422d7a3b362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=B0=91=E9=98=B3?= <786612630@qq.com> Date: Thu, 19 Oct 2023 09:25:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=94=81=E5=BC=B9=E7=AA=97=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lcokSet/lockSet/lockSet_page.dart | 51 ++++++++++++++----- 1 file changed, 38 insertions(+), 13 deletions(-) diff --git a/star_lock/lib/main/lockDetail/lcokSet/lockSet/lockSet_page.dart b/star_lock/lib/main/lockDetail/lcokSet/lockSet/lockSet_page.dart index ff8cf88a..f124f417 100644 --- a/star_lock/lib/main/lockDetail/lcokSet/lockSet/lockSet_page.dart +++ b/star_lock/lib/main/lockDetail/lcokSet/lockSet/lockSet_page.dart @@ -522,7 +522,8 @@ class _LockSetPageState extends State with RouteAware { context: widgetContext, builder: (context) { return CupertinoAlertDialog( - title: const Text('创建公司号,考勤功能才能使用'), + title: const Text("提示"), + content: const Text('创建公司号,考勤功能才能使用'), actions: [ CupertinoDialogAction( child: Text(TranslationLoader.lanKeys!.cancel!.tr), @@ -548,19 +549,43 @@ class _LockSetPageState extends State with RouteAware { void showDeletAlertDialog( 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, - builder: (BuildContext context) { - return ShowIosTipView( - title: "提示", - tipTitle: "删除锁后,所有信息都会一起删除,确定删除锁吗?", - sureClick: () { - Navigator.pop(context); - showDeletPasswordAlertDialog(context); - }, - cancelClick: () { - Navigator.pop(context); - }, + builder: (context) { + return CupertinoAlertDialog( + title: const Text("提示"), + content: const Text('删除锁后,所有信息都会一起删除,确定删除锁吗?'), + actions: [ + CupertinoDialogAction( + child: Text(TranslationLoader.lanKeys!.cancel!.tr), + onPressed: () { + Navigator.pop(context); + }, + ), + CupertinoDialogAction( + child: Text(TranslationLoader.lanKeys!.sure!.tr), + onPressed: () { + Navigator.pop(context); + showDeletPasswordAlertDialog(context); + }, + ), + ], ); }, );