fix mobile readableFileSize

This commit is contained in:
csf 2022-08-01 12:17:38 +08:00
parent 5658ce807e
commit 2b07c97c08

View File

@ -199,7 +199,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) {