diff --git a/demo/arch-menu-light.png b/demo/arch-menu-light.png index 16e6097..6a143df 100644 Binary files a/demo/arch-menu-light.png and b/demo/arch-menu-light.png differ diff --git a/demo/home-light.png b/demo/home-light.png index 444fb0f..b467c57 100644 Binary files a/demo/home-light.png and b/demo/home-light.png differ diff --git a/lib/ui/app_shell.dart b/lib/ui/app_shell.dart index 9227f7c..a12bc76 100644 --- a/lib/ui/app_shell.dart +++ b/lib/ui/app_shell.dart @@ -727,6 +727,7 @@ class _AppShellState extends State { onOpenSettings: () => _handleBrandCommand('_settings'), onOpenHelp: () => showDialog(context: context, builder: (_) => const HelpDialog()), + onCheckUpdate: _openUpdate, ), ); } diff --git a/lib/ui/home_view.dart b/lib/ui/home_view.dart index 9d96e4d..f9cdd16 100644 --- a/lib/ui/home_view.dart +++ b/lib/ui/home_view.dart @@ -25,6 +25,7 @@ class HomeView extends StatefulWidget { required this.onOpenRecent, required this.onOpenSettings, required this.onOpenHelp, + required this.onCheckUpdate, }); /// 全局控制器(只读展示用)。 @@ -45,6 +46,9 @@ class HomeView extends StatefulWidget { /// 帮助中心。 final VoidCallback onOpenHelp; + /// 检查更新(真实按钮:检查中 / 已是最新 / 发现新版本都有明确反馈)。 + final VoidCallback onCheckUpdate; + /// 创建状态。 @override State createState() => _HomeViewState(); @@ -210,7 +214,12 @@ class _HomeViewState extends State { const SizedBox(width: 8), _iconAction(t, Icons.help_outline, '帮助中心', widget.onOpenHelp), const SizedBox(width: 8), - UpdateIcon(size: 36, color: t.sub), + _iconActionIcon( + t, + '检查更新', + widget.onCheckUpdate, + UpdateIcon(size: 22, color: t.sub), + ), ], ); } @@ -218,6 +227,12 @@ class _HomeViewState extends State { /// 圆形图标按钮(触屏 ≥ 44px 点按区)。 Widget _iconAction( Tokens t, IconData icon, String tip, VoidCallback onTap) { + return _iconActionIcon(t, tip, onTap, Icon(icon, size: 20, color: t.sub)); + } + + /// 圆形按钮(自定义内容):与 [_iconAction] 同尺寸同风格。 + Widget _iconActionIcon( + Tokens t, String tip, VoidCallback onTap, Widget child) { return Tooltip( message: tip, child: InkWell( @@ -232,7 +247,7 @@ class _HomeViewState extends State { borderRadius: BorderRadius.circular(12), border: Border.all(color: t.line), ), - child: Icon(icon, size: 20, color: t.sub), + child: child, ), ), ); diff --git a/lib/version.dart b/lib/version.dart index eca1fe0..bfa3a2e 100644 --- a/lib/version.dart +++ b/lib/version.dart @@ -2,7 +2,7 @@ /// /// 应用内更新检查用它判断服务器发布的版本是否更新; /// **每次发版必须与 pubspec 同步更新**(见 BUILD-NOTES 的发布流程)。 -const String kAppVersion = '1.3.8'; +const String kAppVersion = '1.3.9'; /// 是否要求授权(License)才能导出。 /// diff --git a/pubspec.yaml b/pubspec.yaml index 4559f40..a7b7295 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.3.8+30 +version: 1.3.9+31 environment: sdk: ^3.13.3 diff --git a/release/notes/RELEASE_NOTES_v1.3.9.md b/release/notes/RELEASE_NOTES_v1.3.9.md new file mode 100644 index 0000000..d80d673 --- /dev/null +++ b/release/notes/RELEASE_NOTES_v1.3.9.md @@ -0,0 +1,32 @@ +# V1.3.9 更新内容 + +> ⚠️ 1.3.5 大版本的后续修复版。新功能仍可能存在较多 bug 与问题,欢迎反馈 +> (开发者邮箱 liuyu65@126.com / 微信 online-goose)。 + +## 首页「检查更新」按钮修复 + +- 之前首页右上角是一个**纯图标**(不可点击)——看似"假按钮";现在它是 + 真正的更新按钮: + - 点击 → 显示「正在检查更新…」; + - 已是最新:弹出提示「当前已是最新版本(vX)」; + - 发现新版本:直接弹出升级对话框(下载 / 安装)。 +- 工具栏的更新按钮行为不变(一致)。 + +## 关于「安卓桌面仍显示旧名称(时序图设计)」 + +经核查:安装包内应用名称已确认为 **EDC|易得设计**(APK 实测 application-label), +且包名 `cc.sincos.sequence_diagram` 从第一个安卓版本起从未变过——不存在新旧 +两个应用并存的情况。如果桌面仍显示旧名,请按下面两步定位: + +1. **先确认装的是哪一版**:打开应用 → 首页底部「工程总体设计合集… v1.3.x」, + 或「关于」页。若显示的不是 1.3.7+,说明新安装包**实际没有被装上** + (应用内更新流程可能被"安装未知应用"权限拦截),请到 Release 页手动下载 + `*.apk` 安装; +2. 若已显示 1.3.9 而桌面名称仍旧:属**桌面启动器标签缓存**——请查看 + 系统「设置 → 应用 → 找到该应用」确认系统层名称(系统直读安装包,不缓存), + 或重启手机 / 卸载后重装一次刷新桌面。 + +## 其它(如未更新过请一并获取) + +- 帮助中心垂直导航、连线端点捕捉稳定(1.3.8); +- 安卓 logo 按钮等高同形、「识别」只识别当前墨迹、「尺寸 · mm」置顶(1.3.7)。