opt.: disk size (#252)
This commit is contained in:
@@ -182,7 +182,7 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
|
||||
title: Text(fileName),
|
||||
subtitle: isDir
|
||||
? null
|
||||
: Text(stat.size.convertBytes, style: UIs.textGrey),
|
||||
: Text(stat.size.bytes2Str, style: UIs.textGrey),
|
||||
trailing: Text(
|
||||
stat.modified
|
||||
.toString()
|
||||
|
||||
@@ -304,7 +304,7 @@ class _SftpPageState extends State<SftpPage> with AfterLayoutMixin {
|
||||
subtitle: isDir
|
||||
? null
|
||||
: Text(
|
||||
(file.attr.size ?? 0).convertBytes,
|
||||
(file.attr.size ?? 0).bytes2Str,
|
||||
style: UIs.textGrey,
|
||||
),
|
||||
onTap: () {
|
||||
|
||||
@@ -94,7 +94,7 @@ class _SftpMissionPageState extends State<SftpMissionPage> {
|
||||
);
|
||||
case SftpWorkerStatus.loading:
|
||||
final percentStr = (status.progress ?? 0.0).toStringAsFixed(2);
|
||||
final size = (status.size ?? 0).convertBytes;
|
||||
final size = (status.size ?? 0).bytes2Str;
|
||||
return _wrapInCard(
|
||||
status: status,
|
||||
subtitle: l10n.percentOfSize(percentStr, size),
|
||||
|
||||
Reference in New Issue
Block a user