|
|
@ -4,6 +4,8 @@ import 'package:permission_handler/permission_handler.dart';
|
|
|
|
import 'package:project_telephony/base/base_style.dart';
|
|
|
|
import 'package:project_telephony/base/base_style.dart';
|
|
|
|
import 'package:project_telephony/ui/widget/plone_back_button.dart';
|
|
|
|
import 'package:project_telephony/ui/widget/plone_back_button.dart';
|
|
|
|
import 'package:project_telephony/utils/headers.dart';
|
|
|
|
import 'package:project_telephony/utils/headers.dart';
|
|
|
|
|
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
|
|
|
|
|
import 'package:url_launcher/url_launcher_string.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PrivacyRightsPage extends StatefulWidget {
|
|
|
|
class PrivacyRightsPage extends StatefulWidget {
|
|
|
@ -14,7 +16,7 @@ class PrivacyRightsPage extends StatefulWidget {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
_PrivacyRightsPageState createState() => _PrivacyRightsPageState();
|
|
|
|
_PrivacyRightsPageState createState() => _PrivacyRightsPageState();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
final Uri _url = Uri.parse('http://www.dxbs.vip/explain.html');
|
|
|
|
// final Telephony telephony = Telephony.instance;
|
|
|
|
// final Telephony telephony = Telephony.instance;
|
|
|
|
// late final bool permissionsGranted;
|
|
|
|
// late final bool permissionsGranted;
|
|
|
|
// String body = "";
|
|
|
|
// String body = "";
|
|
|
@ -58,6 +60,20 @@ class _PrivacyRightsPageState extends State<PrivacyRightsPage> {
|
|
|
|
backgroundColor: kForeGroundColor),
|
|
|
|
backgroundColor: kForeGroundColor),
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
body: _getRights(),
|
|
|
|
body: _getRights(),
|
|
|
|
|
|
|
|
bottomNavigationBar: GestureDetector(
|
|
|
|
|
|
|
|
onTap:()async{
|
|
|
|
|
|
|
|
// await _launchUrl();
|
|
|
|
|
|
|
|
// await launchUrlString("tel:13111111111");
|
|
|
|
|
|
|
|
} ,
|
|
|
|
|
|
|
|
// onTap: () async{
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
child:
|
|
|
|
|
|
|
|
Container(margin:
|
|
|
|
|
|
|
|
EdgeInsets.symmetric(horizontal: 64.w,vertical: 24.w),
|
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 214.w,vertical: 26.w) ,
|
|
|
|
|
|
|
|
decoration: BoxDecoration(color:const Color(0xFFF9F9F9),borderRadius: BorderRadius.circular(8.w) ),
|
|
|
|
|
|
|
|
child: Text("查看使用说明",style: TextStyle(color: const Color(0xFF1890FF),fontSize: 28.sp),),),),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Color getPermissionColor() {
|
|
|
|
// Color getPermissionColor() {
|
|
|
@ -75,6 +91,11 @@ class _PrivacyRightsPageState extends State<PrivacyRightsPage> {
|
|
|
|
// return "已允许";
|
|
|
|
// return "已允许";
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
Future<void> _launchUrl() async {
|
|
|
|
|
|
|
|
if (!await launchUrl(_url)) {
|
|
|
|
|
|
|
|
throw 'Could not launch $_url';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
_getRights(){
|
|
|
|
_getRights(){
|
|
|
|
return ListTile(
|
|
|
|
return ListTile(
|
|
|
|
onTap: ()async{
|
|
|
|
onTap: ()async{
|
|
|
|