Merge branch 'master' of https://gitee.com/starlock-cn/app-starlock
This commit is contained in:
commit
ae2ee48b2b
@ -54,7 +54,9 @@ class AppFirstEnterHandle {
|
||||
showCupertinoDialog(
|
||||
context: widgetContext,
|
||||
builder: (context) {
|
||||
return CupertinoAlertDialog(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: CupertinoAlertDialog(
|
||||
title: const Text('用户协议和隐私政策概要\n'),
|
||||
content: Text.rich(
|
||||
TextSpan(
|
||||
@ -64,7 +66,8 @@ class AppFirstEnterHandle {
|
||||
TextSpan(
|
||||
text: '《用户协议》',
|
||||
style: const TextStyle(
|
||||
color: Colors.blue, decoration: TextDecoration.underline),
|
||||
color: Colors.blue,
|
||||
decoration: TextDecoration.underline),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
// 处理用户协议点击事件
|
||||
@ -78,7 +81,8 @@ class AppFirstEnterHandle {
|
||||
TextSpan(
|
||||
text: '《隐私政策》',
|
||||
style: const TextStyle(
|
||||
color: Colors.blue, decoration: TextDecoration.underline),
|
||||
color: Colors.blue,
|
||||
decoration: TextDecoration.underline),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = () {
|
||||
// 处理隐私政策点击事件
|
||||
@ -115,7 +119,7 @@ class AppFirstEnterHandle {
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -125,7 +129,9 @@ class AppFirstEnterHandle {
|
||||
showCupertinoDialog(
|
||||
context: widgetContext,
|
||||
builder: (context) {
|
||||
return CupertinoAlertDialog(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: CupertinoAlertDialog(
|
||||
title: const Text('位置权限'),
|
||||
content: const Text('请开启位置权限,应用需要位置权限才可以完成智能锁和网关的蓝牙操作'),
|
||||
actions: [
|
||||
@ -143,7 +149,7 @@ class AppFirstEnterHandle {
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -153,7 +159,9 @@ class AppFirstEnterHandle {
|
||||
showCupertinoDialog(
|
||||
context: widgetContext,
|
||||
builder: (context) {
|
||||
return CupertinoAlertDialog(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
child: CupertinoAlertDialog(
|
||||
title: const Text('相机/相册权限'),
|
||||
content: const Text('请开启本地存储权限,允许应用读写设备上的照片及文件'),
|
||||
actions: [
|
||||
@ -171,7 +179,7 @@ class AppFirstEnterHandle {
|
||||
},
|
||||
),
|
||||
],
|
||||
);
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user