feat(profile): hide engine/update/voice-test entries from Me page
Three settings rows are hidden via `if (false)` — all code is fully preserved and can be restored by removing the condition: - 对话引擎: 引擎切换属平台级配置,普通用户无需感知 - 检查更新: 启动时已静默后台检查,无需额外入口 - 语音 I/O 测试: 仅供开发调试,正式版不对用户展示 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4ed7870cb3
commit
7285fd3b0d
|
|
@ -105,7 +105,10 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
_SettingsGroup(
|
_SettingsGroup(
|
||||||
cardColor: cardColor,
|
cardColor: cardColor,
|
||||||
children: [
|
children: [
|
||||||
_SettingsRow(
|
// [HIDDEN] 对话引擎选择(Claude API vs Agent SDK)
|
||||||
|
// 产品决策:引擎切换属于平台级配置,普通用户无需感知,暂不在"我"页面暴露。
|
||||||
|
// 如需恢复显示,删除 `if (false)` 即可。
|
||||||
|
if (false) _SettingsRow(
|
||||||
icon: Icons.psychology,
|
icon: Icons.psychology,
|
||||||
iconBg: const Color(0xFF7C3AED),
|
iconBg: const Color(0xFF7C3AED),
|
||||||
title: '对话引擎',
|
title: '对话引擎',
|
||||||
|
|
@ -195,13 +198,19 @@ class _ProfilePageState extends ConsumerState<ProfilePage> {
|
||||||
style: TextStyle(color: subtitleColor, fontSize: 14),
|
style: TextStyle(color: subtitleColor, fontSize: 14),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
_SettingsRow(
|
// [HIDDEN] 检查更新
|
||||||
|
// 产品决策:更新检查在 App 启动时已后台静默运行(UpdateService.silentCheck),
|
||||||
|
// 无需在"我"页面额外入口。如需恢复,删除 `if (false)` 即可。
|
||||||
|
if (false) _SettingsRow(
|
||||||
icon: Icons.system_update_outlined,
|
icon: Icons.system_update_outlined,
|
||||||
iconBg: const Color(0xFF22C55E),
|
iconBg: const Color(0xFF22C55E),
|
||||||
title: '检查更新',
|
title: '检查更新',
|
||||||
onTap: () => UpdateService().manualCheckUpdate(context),
|
onTap: () => UpdateService().manualCheckUpdate(context),
|
||||||
),
|
),
|
||||||
_SettingsRow(
|
// [HIDDEN] 语音 I/O 测试(TTS / STT)
|
||||||
|
// 产品决策:仅供开发调试使用,正式版不对普通用户展示。
|
||||||
|
// 调试时可删除 `if (false)` 临时开启;VoiceTestPage 代码及路由均保留。
|
||||||
|
if (false) _SettingsRow(
|
||||||
icon: Icons.record_voice_over,
|
icon: Icons.record_voice_over,
|
||||||
iconBg: const Color(0xFF10B981),
|
iconBg: const Color(0xFF10B981),
|
||||||
title: '语音 I/O 测试',
|
title: '语音 I/O 测试',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue