|
|
|
@ -39,7 +39,12 @@ class SettingPage extends StatelessWidget { |
|
|
|
cells: [ |
|
|
|
TDCell( |
|
|
|
arrow: false, |
|
|
|
title: '后台播放', |
|
|
|
titleWidget: Text( |
|
|
|
"后台播放", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), |
|
|
|
rightIconWidget: TDSwitch( |
|
|
|
isOn: true, |
|
|
|
trackOnColor: const Color.fromRGBO(117, 98, 249, 1), |
|
|
|
@ -50,7 +55,12 @@ class SettingPage extends StatelessWidget { |
|
|
|
), |
|
|
|
TDCell( |
|
|
|
arrow: false, |
|
|
|
title: '语音/视频通话提示音', |
|
|
|
titleWidget: Text( |
|
|
|
"语音/视频通话提示音", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), |
|
|
|
rightIconWidget: TDSwitch(isOn: false,trackOnColor: const Color.fromRGBO(117, 98, 249, 1),onChanged: (bool e) { |
|
|
|
|
|
|
|
return false; |
|
|
|
@ -62,16 +72,40 @@ class SettingPage extends StatelessWidget { |
|
|
|
TDCellGroup( |
|
|
|
theme: TDCellGroupTheme.cardTheme, |
|
|
|
cells: [ |
|
|
|
TDCell(arrow: true, title: '黑名单', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"黑名单", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
Get.to(() => BlacklistPage()); |
|
|
|
}), |
|
|
|
TDCell(arrow: true, title: '隐私设置', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"隐私设置", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
SmartDialog.showToast('功能暂未开放'); |
|
|
|
},), |
|
|
|
TDCell(arrow: true, title: '支付设置', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"支付设置", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
Get.to(() => ChargeSetting()); |
|
|
|
},), |
|
|
|
TDCell(arrow: true, title: '青少年模式', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"青少年模式", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
Get.to(() => TeenagerModePage()); |
|
|
|
},), |
|
|
|
], |
|
|
|
@ -80,25 +114,55 @@ class SettingPage extends StatelessWidget { |
|
|
|
TDCellGroup( |
|
|
|
theme: TDCellGroupTheme.cardTheme, |
|
|
|
cells: [ |
|
|
|
TDCell(arrow: true, title: '系统权限管理', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"系统权限管理", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
openAppSettings(); |
|
|
|
},), |
|
|
|
TDCell(arrow: true, title: '消息通知', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"消息通知", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
// Get.to(() => NoticePage()); |
|
|
|
|
|
|
|
openAppSettings(); |
|
|
|
}), |
|
|
|
TDCell(arrow: true, title: '用户协议', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"用户协议", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
// Get.to(() => NoticePage()); |
|
|
|
|
|
|
|
Get.to(() => OpenWebView(url: "https://www.quzhaoqin.com/privacy.html")); |
|
|
|
}), |
|
|
|
TDCell(arrow: true, title: '隐私政策', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"隐私政策", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
// Get.to(() => NoticePage()); |
|
|
|
|
|
|
|
Get.to(() => OpenWebView(url: "https://www.quzhaoqin.com/information.html")); |
|
|
|
}), |
|
|
|
TDCell(arrow: true, title: '检查更新', onClick: (cell) { |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"检查更新", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell) { |
|
|
|
controller.checkVersion(); |
|
|
|
// SmartDialog.showToast('功能暂未开放'); |
|
|
|
}, |
|
|
|
@ -110,7 +174,13 @@ class SettingPage extends StatelessWidget { |
|
|
|
TDCellGroup( |
|
|
|
theme: TDCellGroupTheme.cardTheme, |
|
|
|
cells: [ |
|
|
|
TDCell(arrow: true, title: '退出登录', onClick: (cell){ |
|
|
|
TDCell(arrow: true, |
|
|
|
titleWidget: Text( |
|
|
|
"退出登录", |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 14.w |
|
|
|
), |
|
|
|
), onClick: (cell){ |
|
|
|
showGeneralDialog( |
|
|
|
context: context, |
|
|
|
pageBuilder: (BuildContext buildContext, Animation< |
|
|
|
@ -171,7 +241,7 @@ class SettingPage extends StatelessWidget { |
|
|
|
"账号注销", |
|
|
|
style: TextStyle( |
|
|
|
color: const Color.fromRGBO(248, 85, 66, 1), |
|
|
|
fontSize: TDTheme.of(context).fontBodyLarge?.size ?? 16, |
|
|
|
fontSize: 14.w, |
|
|
|
height: TDTheme.of(context).fontBodyLarge?.height ?? 24, |
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
), |
|
|
|
|