隐私及权限弹窗都新增屏蔽物理返回键功能
This commit is contained in:
parent
4627e1d53f
commit
7af8966b2f
@ -41,7 +41,9 @@ class AppFirstEnterHandle {
|
||||
showCupertinoDialog(
|
||||
context: widgetContext,
|
||||
builder: (context) {
|
||||
return CupertinoAlertDialog(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: CupertinoAlertDialog(
|
||||
title: const Text('用户协议和隐私政策概要\n'),
|
||||
content: Text.rich(
|
||||
TextSpan(
|
||||
@ -51,7 +53,8 @@ class AppFirstEnterHandle {
|
||||
TextSpan(
|
||||
text: '《用户协议》',
|
||||
style: const TextStyle(
|
||||
color: Colors.blue, decoration: TextDecoration.underline),
|
||||
color: Colors.blue,
|
||||
decoration: TextDecoration.underline),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
// 处理用户协议点击事件
|
||||
@ -65,7 +68,8 @@ class AppFirstEnterHandle {
|
||||
TextSpan(
|
||||
text: '《隐私政策》',
|
||||
style: const TextStyle(
|
||||
color: Colors.blue, decoration: TextDecoration.underline),
|
||||
color: Colors.blue,
|
||||
decoration: TextDecoration.underline),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
// 处理隐私政策点击事件
|
||||
@ -102,7 +106,7 @@ class AppFirstEnterHandle {
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -112,7 +116,9 @@ class AppFirstEnterHandle {
|
||||
showCupertinoDialog(
|
||||
context: widgetContext,
|
||||
builder: (context) {
|
||||
return CupertinoAlertDialog(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: CupertinoAlertDialog(
|
||||
title: const Text('位置权限'),
|
||||
content: const Text('请开启位置权限,应用需要位置权限才可以完成智能锁和网关的蓝牙操作'),
|
||||
actions: [
|
||||
@ -130,7 +136,7 @@ class AppFirstEnterHandle {
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -140,7 +146,9 @@ class AppFirstEnterHandle {
|
||||
showCupertinoDialog(
|
||||
context: widgetContext,
|
||||
builder: (context) {
|
||||
return CupertinoAlertDialog(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: CupertinoAlertDialog(
|
||||
title: const Text('相机/相册权限'),
|
||||
content: const Text('请开启本地存储权限,允许应用读写设备上的照片及文件'),
|
||||
actions: [
|
||||
@ -158,7 +166,7 @@ class AppFirstEnterHandle {
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user