From a0b6bb2326e6166e6c56c4f1c41dd1782328e563 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Mon, 2 Nov 2026 13:42:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=89=88=E6=9C=AC=E5=8F=B7=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/root/load/view.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/pages/root/load/view.dart b/lib/pages/root/load/view.dart index 9480b8b..12bd39f 100644 --- a/lib/pages/root/load/view.dart +++ b/lib/pages/root/load/view.dart @@ -253,12 +253,18 @@ class _StartupProgressPanel extends StatelessWidget { } } +/// 启动提示条,展示当前安装版本或初始化失败后的重试入口。 class _StartupNotice extends StatelessWidget { + /// 创建提示条,重试时复用加载页现有的初始化链路。 const _StartupNotice({required this.failed, required this.onRetry}); + /// 初始化是否失败;失败时以重试按钮替换版本展示。 final bool failed; + + /// 由加载页提供的重试操作,避免提示条重复初始化设备资源。 final Future Function() onRetry; + /// 构建启动提示,版本复用主屏启动前已读取的 APK 信息,与设置页保持一致。 @override Widget build(BuildContext context) { final theme = FTheme.of(context); @@ -299,7 +305,7 @@ class _StartupNotice extends StatelessWidget { ).height(48.h) else Text( - '版本 1.1.1', + '版本 ${AppRuntimeTool.apkVersionLabel}', style: theme.typography.sm.copyWith( color: XfjDesignTokens.muted, fontWeight: FontWeight.w600,