add: send/receive file/folder

This commit is contained in:
Kingtous
2022-07-11 10:30:45 +08:00
parent 1db7fee6fb
commit 79217ca1d9
6 changed files with 210 additions and 42 deletions

View File

@@ -202,7 +202,7 @@ const G = M * K;
String readableFileSize(double size) {
if (size < K) {
return size.toString() + " B";
return size.toStringAsFixed(2) + " B";
} else if (size < M) {
return (size / K).toStringAsFixed(2) + " KB";
} else if (size < G) {