diff --git a/lib/app_upgrade_simple.dart b/lib/app_upgrade_simple.dart index 13f7036..3d842d9 100644 --- a/lib/app_upgrade_simple.dart +++ b/lib/app_upgrade_simple.dart @@ -897,24 +897,39 @@ mixin _UpgradeDialogLogic on State { ], ), ), - if (info.isForceUpdate) ...[ - const SizedBox(width: 8), - Container( - padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2), - decoration: BoxDecoration( - color: colorScheme.error, - borderRadius: BorderRadius.circular(4), - ), - child: Text( - '强制更新', - style: TextStyle( - color: colorScheme.onError, - fontSize: 10, - 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( + // padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2), + // decoration: BoxDecoration( + // color: colorScheme.error, + // borderRadius: BorderRadius.circular(4), + // ), + // child: Text( + // '强制更新', + // style: TextStyle( + // color: colorScheme.onError, + // fontSize: 10, + // fontWeight: FontWeight.w500, + // ), + // ), + // ), + // ], ], ), const SizedBox(height: 8), @@ -932,18 +947,18 @@ mixin _UpgradeDialogLogic on State { colorScheme: colorScheme, ), ), - if (info.apkSize != null) ...[ - const SizedBox(width: 8), - Expanded( - child: _buildInfoChip( - context, - icon: Icons.file_download, - label: '新版体积', - value: formatBytes(info.apkSize!), - colorScheme: colorScheme, - ), - ), - ], + // if (info.apkSize != null) ...[ + // const SizedBox(width: 8), + // Expanded( + // child: _buildInfoChip( + // context, + // icon: Icons.file_download, + // label: '新版体积', + // value: formatBytes(info.apkSize!), + // colorScheme: colorScheme, + // ), + // ), + // ], ], ), ],