mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
opt.: more params of editor page
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user