问题:之前的深色模式实现使用了 colorScheme,导致浅色模式的原有配色也被改变 修复方案: - 定义浅色/深色两套色彩常量,浅色模式使用原有设计色值 - 添加基于 Theme.brightness 的颜色辅助函数动态返回对应颜色 - 浅色模式:保持原有 #1F2937/#6B7280/#9CA3AF/#F3F4F6/白色配色 - 深色模式:使用 #E5E7EB/#9CA3AF/#6B7280/#111827/#1F2937 配色 - 所有 widget 方法更新为使用动态颜色函数 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| DEVELOPMENT_GUIDE.md | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
mining_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.