From b8fd34c23231825ef8a0f1df9c3b83318a0b4dcf Mon Sep 17 00:00:00 2001 From: liyi Date: Fri, 25 Jul 2025 17:10:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B7=B3=E8=BD=AC=E8=AF=AD=E9=9F=B3?= =?UTF-8?q?=E5=8C=85=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lock_voice_setting_page.dart | 57 ++++++++++--------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/lib/mine/addLock/lock_voice_setting/lock_voice_setting_page.dart b/lib/mine/addLock/lock_voice_setting/lock_voice_setting_page.dart index 4b6a3ace..3b0c83b3 100644 --- a/lib/mine/addLock/lock_voice_setting/lock_voice_setting_page.dart +++ b/lib/mine/addLock/lock_voice_setting/lock_voice_setting_page.dart @@ -26,31 +26,22 @@ class _LockVoiceSettingState extends State { @override Widget build(BuildContext context) { - return Scaffold( - backgroundColor: AppColors.mainBackgroundColor, - appBar: TitleAppBar( - barTitle: '锁语音包设置'.tr, - haveBack: false, - haveOtherLeftWidget: true, - leftWidget: TextButton( - onPressed: () { - Get.offAllNamed(Routers.starLockMain); - }, - child: Text( - '跳过'.tr, - style: TextStyle( - color: Colors.white, - fontSize: 24.sp, - fontWeight: FontWeight.w500, - ), - ), - ), - backgroundColor: AppColors.mainColor, - actionsList: [ - TextButton( - onPressed: logic.saveSpeechLanguageSettings, + return WillPopScope( + onWillPop: () async { + return false; + }, + child: Scaffold( + backgroundColor: AppColors.mainBackgroundColor, + appBar: TitleAppBar( + barTitle: '锁语音包设置'.tr, + haveBack: false, + haveOtherLeftWidget: true, + leftWidget: TextButton( + onPressed: () { + Get.offAllNamed(Routers.starLockMain); + }, child: Text( - '保存'.tr, + '跳过'.tr, style: TextStyle( color: Colors.white, fontSize: 24.sp, @@ -58,9 +49,23 @@ class _LockVoiceSettingState extends State { ), ), ), - ], + backgroundColor: AppColors.mainColor, + actionsList: [ + TextButton( + onPressed: logic.saveSpeechLanguageSettings, + child: Text( + '保存'.tr, + style: TextStyle( + color: Colors.white, + fontSize: 24.sp, + fontWeight: FontWeight.w500, + ), + ), + ), + ], + ), + body: _buildBody(), ), - body: _buildBody(), ); }