|
|
@ -25,7 +25,7 @@ final Uri _url = Uri.parse('https://www.dxbs.vip//explain.html');
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
bool sms=false;
|
|
|
|
bool sms=false;
|
|
|
|
bool plone=false;
|
|
|
|
bool plone=false;
|
|
|
|
|
|
|
|
bool callLog=false;
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
|
|
|
|
|
|
|
@ -40,6 +40,7 @@ class _PrivacyRightsPageState extends State<PrivacyRightsPage> {
|
|
|
|
Future<void> _listenForPermissionStatus() async {
|
|
|
|
Future<void> _listenForPermissionStatus() async {
|
|
|
|
sms=await Permission.sms.request().isGranted;
|
|
|
|
sms=await Permission.sms.request().isGranted;
|
|
|
|
plone =await Permission.phone.request().isGranted;
|
|
|
|
plone =await Permission.phone.request().isGranted;
|
|
|
|
|
|
|
|
callLog=await Permission.callLog.request().isGranted;
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@override
|
|
|
|
@override
|
|
|
@ -61,7 +62,7 @@ class _PrivacyRightsPageState extends State<PrivacyRightsPage> {
|
|
|
|
body: Column(children: [
|
|
|
|
body: Column(children: [
|
|
|
|
_getRights("获取设备来电状态","用于获取来电状态",plone),
|
|
|
|
_getRights("获取设备来电状态","用于获取来电状态",plone),
|
|
|
|
_getRights("获取设备短信权限","用于发送短信",sms),
|
|
|
|
_getRights("获取设备短信权限","用于发送短信",sms),
|
|
|
|
|
|
|
|
_getRights("获取设备通话记录","用于获取来电",callLog),
|
|
|
|
],)
|
|
|
|
],)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|