opt.: more params of editor page

This commit is contained in:
lollipopkit
2023-08-28 15:22:12 +08:00
parent a53ebb334b
commit e1284feae6
31 changed files with 149 additions and 87 deletions

View File

@@ -136,9 +136,12 @@ Future<void> _upload(
req.remotePath,
mode: SftpFileOpenMode.write | SftpFileOpenMode.create,
);
final writer = file.write(localFile, onProgress: (total) {
mainSendPort.send(total / localLen * 100);
},);
final writer = file.write(
localFile,
onProgress: (total) {
mainSendPort.send(total / localLen * 100);
},
);
await writer.done;
await file.close();
mainSendPort.send(watch.elapsed);