String parseBytes(int bytes) { if (bytes < 1024) { return '$bytes B'; } else { return '${(bytes / 1024).toStringAsFixed(2)} KB'; } }