add split settings model

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-18 11:32:19 +08:00
parent 24f2cfa4e9
commit bac0769933
4 changed files with 149 additions and 49 deletions

View File

@@ -82,14 +82,18 @@ List<SettingsModel> get styleSettings => [
defaultVal: false,
needReboot: true,
),
SwitchModel(
title: 'App字体字重',
subtitle: '点击设置',
setKey: SettingBoxKey.appFontWeight,
defaultVal: false,
leading: const Icon(Icons.text_fields),
onChanged: (_) => Get.updateMyAppTheme(),
onTap: _showFontWeightDialog,
SplitModel(
normalModel: const NormalModel.split(
title: 'App字体字重',
subtitle: '点击设置',
leading: Icon(Icons.text_fields),
),
switchModel: SwitchModel.split(
defaultVal: false,
setKey: SettingBoxKey.appFontWeight,
onChanged: (_) => Get.updateMyAppTheme(),
onTap: _showFontWeightDialog,
),
),
NormalModel(
title: '界面缩放',