feat(client): 更新提示加引导文案,强制更新弹窗文案统一
- banner: 发现新版本 vX,建议立即更新以获得最新功能与修复 - 强制更新弹窗: 去掉 release notes,统一为「需更新后才能继续使用, 更新以获得最新功能与修复」 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -42,19 +42,8 @@ class _AppShellState extends ConsumerState<AppShell> {
|
||||
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<AppShell> {
|
||||
const SizedBox(width: 8),
|
||||
Expanded(
|
||||
child: Text(
|
||||
'发现新版本 v${updateInfo.latestVersion}',
|
||||
'发现新版本 v${updateInfo.latestVersion},'
|
||||
'建议立即更新以获得最新功能与修复',
|
||||
style: const TextStyle(
|
||||
color: Color(0xFF5D4037),
|
||||
fontSize: 13),
|
||||
|
||||
Reference in New Issue
Block a user