问题:_calculateTotalAssetValue() 依赖 WebSocket 推送的 _currentPrice 和定时器初始化的 _currentShareBalance,在 WebSocket 未连接或定时器未 启动时这些值均为 0,导致 shareValue=0,总资产仅显示现金余额。 修复:当 WebSocket/_timer 未初始化时,回退到 API 返回的 asset.currentPrice、asset.burnMultiplier 和 asset.shareBalance, 与 _buildAssetList 中积分股估值的计算逻辑保持一致。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| scripts | ||
| 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.