feat(ios):照片loading
This commit is contained in:
@@ -35,6 +35,7 @@ class UploadOss {
|
||||
required String signature,
|
||||
required String ossDirectory,
|
||||
required String ossHost,
|
||||
bool? isShowLoading,
|
||||
}) async {
|
||||
// 生成oss的路径和文件名我这里目前设置的是moment/20201229/test.mp4
|
||||
String pathName = "$rootDir/${getDate()}/app-${getRandom(12)}.$fileType";
|
||||
@@ -54,10 +55,12 @@ class UploadOss {
|
||||
filename: "${getRandom(12)}.$fileType",
|
||||
),
|
||||
});
|
||||
await EasyLoading.show(
|
||||
// status: 'loading...',
|
||||
maskType: EasyLoadingMaskType.black,
|
||||
);
|
||||
if (isShowLoading == true) {
|
||||
await EasyLoading.show(
|
||||
// status: 'loading...',
|
||||
maskType: EasyLoadingMaskType.black,
|
||||
);
|
||||
}
|
||||
Dio dio = Dio();
|
||||
dio.options.responseType = ResponseType.plain;
|
||||
// dio.options.method = 'put';
|
||||
|
||||
Reference in New Issue
Block a user