feat:版本号展示

This commit is contained in:
dzc committed 2026-11-02 13:42:53 +08:00
1 parent 7857011b92
commit a0b6bb2326
1 file changed
+7 -1
+7 -1
View File
@@ -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<void> 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,