From c98a90472bda446ea78ffe5ff89b88e8d9282a87 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Fri, 5 Jun 2026 09:25:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(client):=20=E6=9B=B4=E6=96=B0=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E5=8A=A0=E5=BC=95=E5=AF=BC=E6=96=87=E6=A1=88=EF=BC=8C?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E6=9B=B4=E6=96=B0=E5=BC=B9=E7=AA=97=E6=96=87?= =?UTF-8?q?=E6=A1=88=E7=BB=9F=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - banner: 发现新版本 vX,建议立即更新以获得最新功能与修复 - 强制更新弹窗: 去掉 release notes,统一为「需更新后才能继续使用, 更新以获得最新功能与修复」 Co-Authored-By: Claude Opus 4.8 --- client/lib/screens/shell/app_shell.dart | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/client/lib/screens/shell/app_shell.dart b/client/lib/screens/shell/app_shell.dart index 328d6b6..fa61dad 100644 --- a/client/lib/screens/shell/app_shell.dart +++ b/client/lib/screens/shell/app_shell.dart @@ -42,19 +42,8 @@ class _AppShellState extends ConsumerState { Text('发现新版本'), ], ), - content: Column( - mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text('当前版本需要更新至 v${info.latestVersion} 才能继续使用。'), - if (info.releaseNotes.isNotEmpty) ...[ - const SizedBox(height: 12), - Text(info.releaseNotes, - style: const TextStyle( - color: AppTheme.textSecondary, fontSize: 13)), - ], - ], - ), + content: Text('发现新版本 v${info.latestVersion},需更新后才能继续使用,' + '更新以获得最新功能与修复。'), actions: [ ElevatedButton( onPressed: () => startInAppUpdate(context, info), @@ -229,7 +218,8 @@ class _AppShellState extends ConsumerState { const SizedBox(width: 8), Expanded( child: Text( - '发现新版本 v${updateInfo.latestVersion}', + '发现新版本 v${updateInfo.latestVersion},' + '建议立即更新以获得最新功能与修复', style: const TextStyle( color: Color(0xFF5D4037), fontSize: 13),