parent
a034c5c9f5
commit
53e05e0f62
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,79 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:project_telephony/base/base_style.dart';
|
||||
import 'package:project_telephony/ui/widget/plone_back_button.dart';
|
||||
import 'package:project_telephony/utils/headers.dart';
|
||||
|
||||
class PrivacyRightsPage extends StatefulWidget {
|
||||
final String name;
|
||||
const PrivacyRightsPage({Key? key, required this.name}) : super(key: key);
|
||||
|
||||
@override
|
||||
_PrivacyRightsPageState createState() => _PrivacyRightsPageState();
|
||||
}
|
||||
|
||||
class _PrivacyRightsPageState extends State<PrivacyRightsPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
elevation: 0,
|
||||
title: Text(
|
||||
widget.name,
|
||||
style: TextStyle(
|
||||
fontSize: BaseStyle.fontSize34,
|
||||
color: BaseStyle.color333333,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
titleSpacing: 162.w,
|
||||
leading: const CloudBackButton(isSpecial: true),
|
||||
backgroundColor: kForeGroundColor),
|
||||
backgroundColor: Colors.white,
|
||||
body: widget.name == "隐私政策" ? null : _getRights(true),
|
||||
);
|
||||
}
|
||||
|
||||
_getRights(bool pd) {
|
||||
return GestureDetector(
|
||||
onTap: () {},
|
||||
child: Container(
|
||||
height: 144.w,
|
||||
width: 750.w,
|
||||
padding: EdgeInsets.symmetric(horizontal: 64.w, vertical: 17.w),
|
||||
child: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'获取设备来电',
|
||||
style: TextStyle(
|
||||
fontSize: 32.sp,
|
||||
color: BaseStyle.color333333,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
16.hb,
|
||||
Text('用于获取设备',
|
||||
style: TextStyle(
|
||||
fontSize: 28.sp, color: BaseStyle.color999999)),
|
||||
],
|
||||
),
|
||||
269.wb,
|
||||
Text(pd ? "未允许" : "已允许",
|
||||
style: TextStyle(
|
||||
fontSize: 24.sp,
|
||||
color: pd
|
||||
? const Color(0xFFFF4D4D)
|
||||
: BaseStyle.color999999)),
|
||||
SizedBox(
|
||||
width: 48.w,
|
||||
height: 48.w,
|
||||
child: const Icon(
|
||||
Icons.keyboard_arrow_right,
|
||||
),
|
||||
),
|
||||
],
|
||||
)),
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:project_telephony/utils/headers.dart';
|
||||
|
||||
class Centertipsalterwidget extends StatefulWidget {
|
||||
final String title;
|
||||
final String desText;
|
||||
const Centertipsalterwidget(
|
||||
{Key? key, required this.desText, required this.title})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
_CentertipsalterwidgetState createState() => _CentertipsalterwidgetState();
|
||||
}
|
||||
|
||||
class _CentertipsalterwidgetState extends State<Centertipsalterwidget> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return CupertinoAlertDialog(
|
||||
title: Text(widget.title),
|
||||
content: Column(children: [
|
||||
SizedBox(
|
||||
height: 10.w,
|
||||
),
|
||||
Align(
|
||||
child: Text(widget.desText),
|
||||
alignment: const Alignment(0, 0),
|
||||
)
|
||||
]),
|
||||
actions: [
|
||||
CupertinoDialogAction(
|
||||
child: const Text(
|
||||
'取消',
|
||||
style: TextStyle(color: Color(0xFF999999)),
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
CupertinoDialogAction(
|
||||
child: const Text('确定'),
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue