mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 11:41:09 +08:00
add split settings model
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -70,19 +70,23 @@ List<SettingsModel> get extraSettings => [
|
||||
onTap: _showDownPathDialog,
|
||||
),
|
||||
],
|
||||
SwitchModel(
|
||||
title: '空降助手',
|
||||
subtitle: '点击配置',
|
||||
setKey: SettingBoxKey.enableSponsorBlock,
|
||||
defaultVal: false,
|
||||
onTap: (context) => Get.toNamed('/sponsorBlock'),
|
||||
leading: const Stack(
|
||||
clipBehavior: Clip.none,
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Icon(Icons.shield_outlined),
|
||||
Icon(Icons.play_arrow_rounded, size: 15),
|
||||
],
|
||||
SplitModel(
|
||||
normalModel: const NormalModel.split(
|
||||
title: '空降助手',
|
||||
subtitle: '点击配置',
|
||||
leading: Stack(
|
||||
clipBehavior: Clip.none,
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
Icon(Icons.shield_outlined),
|
||||
Icon(Icons.play_arrow_rounded, size: 15),
|
||||
],
|
||||
),
|
||||
),
|
||||
switchModel: SwitchModel.split(
|
||||
defaultVal: false,
|
||||
setKey: SettingBoxKey.enableSponsorBlock,
|
||||
onTap: (context) => Get.toNamed('/sponsorBlock'),
|
||||
),
|
||||
),
|
||||
PopupModel<SkipType>(
|
||||
@@ -94,14 +98,18 @@ List<SettingsModel> get extraSettings => [
|
||||
.put(SettingBoxKey.pgcSkipType, value.index)
|
||||
.whenComplete(setState),
|
||||
),
|
||||
SwitchModel(
|
||||
title: '检查未读动态',
|
||||
subtitle: '点击设置检查周期(min)',
|
||||
leading: const Icon(Icons.notifications_none),
|
||||
setKey: SettingBoxKey.checkDynamic,
|
||||
defaultVal: true,
|
||||
onChanged: (value) => Get.find<MainController>().checkDynamic = value,
|
||||
onTap: _showDynDialog,
|
||||
SplitModel(
|
||||
normalModel: const NormalModel.split(
|
||||
title: '检查未读动态',
|
||||
subtitle: '点击设置检查周期(min)',
|
||||
leading: Icon(Icons.notifications_none),
|
||||
),
|
||||
switchModel: SwitchModel.split(
|
||||
defaultVal: true,
|
||||
setKey: SettingBoxKey.checkDynamic,
|
||||
onChanged: (value) => Get.find<MainController>().checkDynamic = value,
|
||||
onTap: _showDynDialog,
|
||||
),
|
||||
),
|
||||
SwitchModel(
|
||||
title: '显示视频分段信息',
|
||||
@@ -615,12 +623,17 @@ List<SettingsModel> get extraSettings => [
|
||||
defaultVal: false,
|
||||
onChanged: (value) => MemberTabType.showMemberShop = value,
|
||||
),
|
||||
const SwitchModel(
|
||||
leading: Icon(Icons.airplane_ticket_outlined),
|
||||
title: '设置代理',
|
||||
subtitle: '设置代理 host:port',
|
||||
setKey: SettingBoxKey.enableSystemProxy,
|
||||
onTap: _showProxyDialog,
|
||||
const SplitModel(
|
||||
normalModel: NormalModel.split(
|
||||
title: '设置代理',
|
||||
subtitle: '设置代理 host:port',
|
||||
leading: Icon(Icons.airplane_ticket_outlined),
|
||||
),
|
||||
switchModel: SwitchModel.split(
|
||||
defaultVal: false,
|
||||
setKey: SettingBoxKey.enableSystemProxy,
|
||||
onTap: _showProxyDialog,
|
||||
),
|
||||
),
|
||||
const SwitchModel(
|
||||
title: '自动清除缓存',
|
||||
|
||||
Reference in New Issue
Block a user