111
This commit is contained in:
parent
1c1934109f
commit
5f0ca7bed0
|
|
@ -895,43 +895,27 @@ mixin _UpgradeDialogLogic<T extends StatefulWidget> on State<T> {
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (info.apkSize != null) ...[
|
|
||||||
const SizedBox(width: 6),
|
|
||||||
Padding(
|
|
||||||
padding: EdgeInsetsGeometry.only(top: 4),
|
|
||||||
child: Text(
|
|
||||||
formatBytes(info.apkSize!),
|
|
||||||
textAlign: TextAlign.end,
|
|
||||||
style: TextStyle(
|
|
||||||
color: colorScheme.onPrimary,
|
|
||||||
fontSize: 8,
|
|
||||||
fontWeight: FontWeight.w500,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
]
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if (info.isForceUpdate) ...[
|
||||||
// if (info.isForceUpdate) ...[
|
const SizedBox(width: 8),
|
||||||
// const SizedBox(width: 8),
|
Container(
|
||||||
// Container(
|
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
|
||||||
// padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
|
decoration: BoxDecoration(
|
||||||
// decoration: BoxDecoration(
|
color: colorScheme.error,
|
||||||
// color: colorScheme.error,
|
borderRadius: BorderRadius.circular(4),
|
||||||
// borderRadius: BorderRadius.circular(4),
|
),
|
||||||
// ),
|
child: Text(
|
||||||
// child: Text(
|
'强制更新',
|
||||||
// '强制更新',
|
style: TextStyle(
|
||||||
// style: TextStyle(
|
color: colorScheme.onError,
|
||||||
// color: colorScheme.onError,
|
fontSize: 10,
|
||||||
// fontSize: 10,
|
fontWeight: FontWeight.w500,
|
||||||
// fontWeight: FontWeight.w500,
|
),
|
||||||
// ),
|
),
|
||||||
// ),
|
),
|
||||||
// ),
|
],
|
||||||
// ],
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
|
|
@ -939,6 +923,18 @@ mixin _UpgradeDialogLogic<T extends StatefulWidget> on State<T> {
|
||||||
// 版本对比和大小信息
|
// 版本对比和大小信息
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
|
if (info.apkSize != null) ...[
|
||||||
|
Expanded(
|
||||||
|
child: _buildInfoChip(
|
||||||
|
context,
|
||||||
|
icon: Icons.file_download,
|
||||||
|
label: '新版体积',
|
||||||
|
value: formatBytes(info.apkSize!),
|
||||||
|
colorScheme: colorScheme,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 8),
|
||||||
|
],
|
||||||
Expanded(
|
Expanded(
|
||||||
child: _buildInfoChip(
|
child: _buildInfoChip(
|
||||||
context,
|
context,
|
||||||
|
|
@ -949,18 +945,6 @@ mixin _UpgradeDialogLogic<T extends StatefulWidget> on State<T> {
|
||||||
colorScheme: colorScheme,
|
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,
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ],
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue