- 清理大量废弃的 barrel 导出文件,移除冗余的中间导出层 - 修复所有相对路径导入错误,统一调整为扁平化模块引用 - 更新多平台 pubspec 版本号与依赖库版本 - 补充后端功能问题管理后台与脚本工具 - 调整部分页面的快捷方式文案适配新功能 - 更新部分翻译覆盖率与API文档
124 lines
5.2 KiB
Dart
124 lines
5.2 KiB
Dart
/// ============================================================
|
|
/// 闲言APP — 设置默认值统一管理
|
|
/// 创建时间: 2026-05-31
|
|
/// 更新时间: 2026-06-12
|
|
/// 作用: 集中定义所有设置项的默认值,避免在 const 构造函数、
|
|
/// fromStorage fallback、resetAll 三处分散定义导致不一致
|
|
/// 上次更新: 新增 iconModeId 图标模式默认值
|
|
/// ============================================================
|
|
|
|
abstract final class DefaultSettings {
|
|
// ============================================================
|
|
// 声音设置
|
|
// ============================================================
|
|
static const bool soundEnabled = false;
|
|
static const String vibrationLevelId = 'medium';
|
|
static const String soundEffectTypeId = 'standard';
|
|
static const bool sfxEnabled = false;
|
|
static const int sfxStyleIndex = 0;
|
|
|
|
// ============================================================
|
|
// 隐私设置
|
|
// ============================================================
|
|
static const bool appLockEnabled = false;
|
|
static const bool clipboardReadEnabled = false;
|
|
static const bool searchHistoryEnabled = true;
|
|
static const bool nearbyDiscovery = false;
|
|
|
|
// ============================================================
|
|
// 显示设置
|
|
// ============================================================
|
|
static const String screenTimeoutId = '2m';
|
|
static const bool immersiveStatusBar = false;
|
|
static const bool reduceAnimations = false;
|
|
static const String darkModeId = 'system';
|
|
static const String fontScaleId = 'md';
|
|
static const bool highContrastEnabled = false;
|
|
static const String colorWeakTypeId = 'none';
|
|
static const bool boldTextEnabled = false;
|
|
static const String iconModeId = 'mixed';
|
|
static const int screenAlwaysOn = 0;
|
|
|
|
// ============================================================
|
|
// 网络设置
|
|
// ============================================================
|
|
static const bool proxyEnabled = false;
|
|
static const String proxyHost = '';
|
|
static const int proxyPort = 0;
|
|
static const String cacheStrategyId = 'smart';
|
|
static const bool autoPlayWifiOnly = false;
|
|
|
|
// ============================================================
|
|
// 性能设置
|
|
// ============================================================
|
|
static const bool dataSaverMode = false;
|
|
static const String imageQualityId = 'high';
|
|
static const bool autoPlayEnabled = true;
|
|
static const bool batteryOptimizationEnabled = false;
|
|
static const bool backgroundRefreshEnabled = true;
|
|
|
|
// ============================================================
|
|
// 开发者设置
|
|
// ============================================================
|
|
static const bool debugInfoEnabled = false;
|
|
static const bool developerModeEnabled = false;
|
|
static const String apiEnvironmentId = 'production';
|
|
static const String apiCustomHost = '';
|
|
static const bool compatibilityMode = false;
|
|
static const bool catcherEnabled = true;
|
|
|
|
// ============================================================
|
|
// 通用杂项设置
|
|
// ============================================================
|
|
static const bool syncEnabled = false;
|
|
static const bool autoCheckUpdate = true;
|
|
static const String languageId = 'system';
|
|
static const String startupPageId = 'home';
|
|
static const String pageTransitionModeId = 'navigate';
|
|
static const bool predictiveBackEnabled = false;
|
|
static const bool longPressPreviewEnabled = false;
|
|
static const String searchEngineId = 'internal';
|
|
static const String contentDensityId = 'standard';
|
|
static const String autoClearCacheId = 'never';
|
|
static const int cacheSize = 0;
|
|
|
|
static const bool dailyNotification = false;
|
|
static const int notifyTimeHour = 8;
|
|
static const int notifyTimeMinute = 0;
|
|
static const bool shaderBackground = false;
|
|
static const bool semanticsDebugEnabled = false;
|
|
|
|
// ============================================================
|
|
// 主题设置
|
|
// ============================================================
|
|
static const int themeModeSortOrder = 3;
|
|
static const String accentColorId = 'noir';
|
|
static const String fontSizeId = 'normal';
|
|
static const String fontWeightId = 'regular';
|
|
static const String fontStyleId = 'system';
|
|
static const String glassIntensityId = 'medium';
|
|
static const String animationIntensityId = 'normal';
|
|
static const String autoDarkModeId = 'off';
|
|
static const int darkScheduleStart = 1260;
|
|
static const int darkScheduleEnd = 360;
|
|
static const int customAccentColor = 0xFF6C63FF;
|
|
static const String wallpaperPath = '';
|
|
static const String wallpaperSourceId = 'none';
|
|
static const String cornerRadiusId = 'standard';
|
|
static const String cardStyleId = 'ios';
|
|
static const String tabExpressionStyleId = 'exaggerated';
|
|
static const String tabCharacterStyleId = 'cat';
|
|
static const String bubbleStyleId = 'standard';
|
|
static const String customFontFamily = '';
|
|
|
|
// ============================================================
|
|
// 分屏设置
|
|
// ============================================================
|
|
static const bool splitViewEnabled = false;
|
|
|
|
// ============================================================
|
|
// 引导页设置
|
|
// ============================================================
|
|
static const bool onboardingSoundEnabled = false;
|
|
}
|