showImageUpload static method
void
showImageUpload(
- BuildContext context,
- double width,
- double height,
- String dirId,
- String dirName,
- UploadMode uploadMode,
- IPFSFileType fileType,
- ValueChanged<
List< callback,UploadResultEntity> >
图片或者视频上传
Implementation
static void showImageUpload(BuildContext context, double width, double height,String dirId,String dirName,
UploadMode uploadMode,IPFSFileType fileType, ValueChanged<List<UploadResultEntity>> callback) {
showModalBottomSheet(
context: context,
backgroundColor: Colors.transparent,
isScrollControlled: true,
builder: (BuildContext context) {
return FileSelectView(
dirId:dirId,
fileType:fileType,
dirName:dirName,
uploadType: UploadType.TYPE_IMAGE,
uploadMode: uploadMode,
callback: callback,
);
});
}