showImageUpload static method

void showImageUpload(
  1. BuildContext context,
  2. double width,
  3. double height,
  4. String dirId,
  5. String dirName,
  6. UploadMode uploadMode,
  7. IPFSFileType fileType,
  8. ValueChanged<List<UploadResultEntity>> callback,
)

图片或者视频上传

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,
        );
      });
}