|
|
1793fb727e
|
统一弹窗风格:Material Design 3 规范,消除颜色不一致
- 所有 AlertDialog 替换为 ModernDialog
- ConfirmDialog/AssetDialogs 去掉 GlassPanel,统一 surfaceContainer 背景
- 按钮统一 FilledButton + TextButton
- 修复 import 路径
|
2026-04-16 11:47:17 +08:00 |
|
|
|
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 |
|
|
|
e58d2e4ca0
|
feat(ui): 优化组件样式并添加现代弹窗模板
- 更新 trade_button.dart 使用新颜色系统
- 更新 coin_card.dart 使用新颜色系统
- 更新 asset_card.dart 使用新颜色系统
- 创建 modern_dialog.dart 现代弹窗模板
- 创建 modern_bottom_sheet.dart 现代底部抽屉模板
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-03-23 14:18:56 +08:00 |
|