fix(upload_image): 修改媒体上传文件
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
|
||||
import 'video_batch_upload_task.dart';
|
||||
|
||||
class VideoBatchUploadBackButton extends StatelessWidget {
|
||||
const VideoBatchUploadBackButton({
|
||||
super.key,
|
||||
@@ -28,11 +30,13 @@ class VideoBatchUploadIconButton extends StatelessWidget {
|
||||
const VideoBatchUploadIconButton({
|
||||
super.key,
|
||||
required this.onTap,
|
||||
this.assetType = VideoBatchUploadAssetType.video,
|
||||
this.iconSize,
|
||||
this.rightPadding,
|
||||
});
|
||||
|
||||
final VoidCallback onTap;
|
||||
final VideoBatchUploadAssetType assetType;
|
||||
final double? iconSize;
|
||||
final double? rightPadding;
|
||||
|
||||
@@ -43,7 +47,9 @@ class VideoBatchUploadIconButton extends StatelessWidget {
|
||||
child: Padding(
|
||||
padding: EdgeInsets.only(right: rightPadding ?? 30.w),
|
||||
child: Icon(
|
||||
Icons.video_call_outlined,
|
||||
assetType == VideoBatchUploadAssetType.video
|
||||
? Icons.video_call_outlined
|
||||
: Icons.add_photo_alternate_outlined,
|
||||
size: iconSize ?? 50.sp,
|
||||
color: const Color(0xFF1D1D21),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user