From fbb84fdf0ffa5a85f5ec09260ede556009f64bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AD=90=E8=B4=A4?= Date: Wed, 7 Jan 2026 18:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=97=E4=BD=93=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/setting/setting_page.dart | 96 +++++++++++++++++++++++++---- 1 file changed, 83 insertions(+), 13 deletions(-) diff --git a/lib/pages/setting/setting_page.dart b/lib/pages/setting/setting_page.dart index f46897a..ebf8853 100644 --- a/lib/pages/setting/setting_page.dart +++ b/lib/pages/setting/setting_page.dart @@ -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, ),