web端修复

This commit is contained in:
Developer
2026-04-01 01:34:22 +08:00
parent ab9961853d
commit 6517a78c7e
12 changed files with 2390 additions and 46 deletions

View File

@@ -4,24 +4,18 @@ All notable changes to this project will be documented in this file.
---
## [1.3.10] - 2026-03-31
## [1.3.11] - 2026-03-31
### 新增
- 💡 **屏幕常亮功能**
- 在个人设置页面添加了屏幕常亮开关
- 实现了开关状态的管理
- 添加了 OLED 屏幕提示对话框,告知用户可能的屏幕老化风险
- 支持 OpenHarmony 平台
### 修复
- 🐛 **修复 Web 平台兼容性问题**
- 修复了 `wakelock_plus` 库在 Web 平台上不可用的问题(`dart:ffi` 在 Web 平台上不可用)
- 在 Web 平台上禁用了屏幕常亮功能,并显示相应的提示信息
- 在 Web 平台上隐藏了屏幕常亮设置项
- 涉及文件:
- `lib/views/profile/profile_page.dart` - 添加屏幕常亮开关和功能实现
- `lib/views/profile/profile_page.dart` - 添加 Web 平台检查
- `lib/views/profile/components/pop-menu.dart` - 添加 Web 平台检查
### 变更
- 📱 **修改弹出菜单按钮**
- 将弹出菜单中的 "设置" 按钮修改为 "取消" 按钮
- 将 "退出软件" 按钮修改为 "返回桌面" 按钮
- 优化了 "刷新数据" 按钮功能,点击时会刷新所有统计数据
- 涉及文件:
- `lib/views/profile/components/pop-menu.dart` - 修改弹出菜单项
---
### 修复
- 优化了屏幕常亮功能的错误处理