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:
hailin 2026-03-07 17:49:26 -08:00
parent 4ed7870cb3
commit 7285fd3b0d
1 changed files with 12 additions and 3 deletions

View File

@ -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 测试',