From ec343386f1898391956e4ee00d30e9cd37d226c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B1=8C=E6=9D=82?= <1147192855@qq.com> Date: Fri, 28 Nov 2025 11:46:38 +0800 Subject: [PATCH] 111 --- lib/app_upgrade_simple.dart | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/app_upgrade_simple.dart b/lib/app_upgrade_simple.dart index 3d842d9..599213f 100644 --- a/lib/app_upgrade_simple.dart +++ b/lib/app_upgrade_simple.dart @@ -870,6 +870,8 @@ mixin _UpgradeDialogLogic on State { crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( + + crossAxisAlignment: CrossAxisAlignment.end, children: [ Container( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), @@ -894,24 +896,22 @@ mixin _UpgradeDialogLogic on State { fontWeight: FontWeight.bold, ), ), + if(info.apkSize != null) ...[ + const SizedBox(width: 6), + Text( + formatBytes(info.apkSize!), + textAlign:TextAlign.end, + style: TextStyle( + color: colorScheme.onPrimary, + fontSize: 8, + fontWeight: FontWeight.w500, + ), + ), + ] ], ), ), - Container( - padding: const EdgeInsets.symmetric(horizontal: 4, vertical: 2), - decoration: BoxDecoration( - color: Colors.white, - borderRadius: BorderRadius.circular(4), - ), - child: Text( - formatBytes(info.apkSize!), - style: TextStyle( - color: Colors.black, - fontSize: 10, - fontWeight: FontWeight.w500, - ), - ), - ), + // if (info.isForceUpdate) ...[ // const SizedBox(width: 8), // Container(