fix(upload_image): 修改媒体上传文件

This commit is contained in:
2026-05-29 17:58:44 +08:00
parent aa89e03bee
commit 037f14b52f
6 changed files with 117 additions and 15 deletions
@@ -67,7 +67,7 @@ class _CollapsedUploadBar extends StatelessWidget {
SizedBox(width: 12.w),
Expanded(
child: Text(
'正在上传 ${queue.finishedCount}/${queue.totalCount}',
'正在上传${queue.assetType.label} ${queue.finishedCount}/${queue.totalCount}',
style: TextStyle(
fontSize: 24.sp,
color: const Color(0xFF1F2937),
@@ -117,7 +117,7 @@ class _ExpandedUploadPanel extends StatelessWidget {
children: <Widget>[
Expanded(
child: Text(
'上传视频',
'上传${queue.assetType.label}',
style: TextStyle(
fontSize: 30.sp,
color: const Color(0xFF111827),
@@ -201,7 +201,9 @@ class _UploadTaskCell extends StatelessWidget {
color: const Color(0xFFEDEFF3),
alignment: Alignment.center,
child: Icon(
Icons.videocam_outlined,
task.assetType == VideoBatchUploadAssetType.video
? Icons.videocam_outlined
: Icons.image_outlined,
size: 46.sp,
color: const Color(0xFF98A2B3),
),
@@ -292,7 +294,7 @@ class _UploadTaskCell extends StatelessWidget {
if (task.durationText.isNotEmpty) task.durationText,
if (task.fileSizeText.isNotEmpty) task.fileSizeText,
];
return parts.isEmpty ? '本地视频' : parts.join(' · ');
return parts.isEmpty ? task.assetType.localLabel : parts.join(' · ');
}
}