fix:跳转语音包设置
This commit is contained in:
parent
42d1ea52d4
commit
b8fd34c232
@ -26,31 +26,22 @@ class _LockVoiceSettingState extends State<LockVoiceSetting> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return WillPopScope(
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
onWillPop: () async {
|
||||||
appBar: TitleAppBar(
|
return false;
|
||||||
barTitle: '锁语音包设置'.tr,
|
},
|
||||||
haveBack: false,
|
child: Scaffold(
|
||||||
haveOtherLeftWidget: true,
|
backgroundColor: AppColors.mainBackgroundColor,
|
||||||
leftWidget: TextButton(
|
appBar: TitleAppBar(
|
||||||
onPressed: () {
|
barTitle: '锁语音包设置'.tr,
|
||||||
Get.offAllNamed(Routers.starLockMain);
|
haveBack: false,
|
||||||
},
|
haveOtherLeftWidget: true,
|
||||||
child: Text(
|
leftWidget: TextButton(
|
||||||
'跳过'.tr,
|
onPressed: () {
|
||||||
style: TextStyle(
|
Get.offAllNamed(Routers.starLockMain);
|
||||||
color: Colors.white,
|
},
|
||||||
fontSize: 24.sp,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
backgroundColor: AppColors.mainColor,
|
|
||||||
actionsList: [
|
|
||||||
TextButton(
|
|
||||||
onPressed: logic.saveSpeechLanguageSettings,
|
|
||||||
child: Text(
|
child: Text(
|
||||||
'保存'.tr,
|
'跳过'.tr,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 24.sp,
|
fontSize: 24.sp,
|
||||||
@ -58,9 +49,23 @@ class _LockVoiceSettingState extends State<LockVoiceSetting> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
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(),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user