658f49e280
refactor: 批量替换 shadcn_ui 为 Material Design 组件
...
## 样式主题重点优化
### 颜色映射(注重主题一致性)
- mutedForeground → onSurfaceVariant
- border → outline
- card → surfaceContainer
- destructive → error
- 保留所有 AppColorScheme 自定义颜色
### 文本样式映射
- theme.textTheme.h1/muted/large → AppTextStyles.xxx(context)
- 统一使用项目定义的文本样式系统
### 组件替换(20个文件)
- ShadApp → MaterialApp(移除 ShadThemeData)
- ShadButton → ElevatedButton/OutlinedButton
- ShadDialog → AlertDialog
- ShadInputFormField → MaterialInput
- ShadSelect → DropdownButtonFormField
- ShadCard → Card
- showShadDialog → showDialog
### 依赖变更
- 移除:shadcn_ui: ^0.52.1
- 添加:lucide_icons_flutter: ^2.0.0
### 业务逻辑保护
✅ 所有 onPressed/onChanged/validator 回调保持不变
✅ 所有 controller/focusNode 数据绑定保持不变
✅ 所有布局结构(Column/Row/Padding)保持不变
✅ 仅替换 UI 组件层,业务逻辑完全保留
2026-04-08 12:24:24 +08:00
sion
5ca1274607
111
2026-04-07 01:05:05 +08:00
7ed2435a4c
refactor(theme): 迁移主题感知颜色至 ThemeExtension
...
- 创建 AppThemeColors ThemeExtension 类,统一管理主题感知颜色(涨跌色、卡片背景、渐变等)
- 从 AppColorScheme 移除主题感知辅助函数,仅保留静态颜色常量
- 在 AppTheme 中注册 ThemeExtension,支持深色/浅色主题工厂
- 重构所有 UI 组件使用 context.appColors 访问主题颜色,替代硬编码的 AppColorScheme 方法调用
- 移除组件中重复的 isDark 判断逻辑,简化颜色获取方式
- 保持向后兼容性,所有现有功能不变
2026-04-06 01:58:08 +08:00
f5ac578892
docs(theme): update documentation and clean up deprecated color scheme definitions
...
Removed outdated compatibility aliases and deprecated methods from AppColorScheme,
and updated CLAUDE.md to reflect new theme system requirements with centralized
color management and no hard-coded values in UI components.
2026-04-05 23:37:27 +08:00
ed25bb2da4
refactor: 优化字号主题体系,参考成熟交易平台标准
...
- 重构主题字号体系 (h1-h4, body, amount等)
- 修复16个页面文件中的硬编码字号
- 新字号层级参考币安/OKX标准
- Display: 22/20/18px (总资产、价格)
- Headline: 15/14/13px (标题、副标题)
- Body: 13/12/11px (正文、辅助文字)
- Label: 11/10/9px (标签)
- Number: 22/16/13px (数字)
2026-04-01 12:49:17 +08:00
56142ed5f2
优化
2026-03-26 00:00:27 +08:00
5c7db7b9fe
优化
2026-03-25 23:56:23 +08:00