feat(ios):照片loading

This commit is contained in:
2025-10-29 18:13:33 +08:00
parent 0cc51689be
commit 5bb3ebd853
12 changed files with 1561 additions and 7 deletions

View File

@@ -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';