FileInfo: Use formatBytes for showing size
This commit is contained in:
parent
ed43970aac
commit
cff1cec1fe
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ import 'package:photos/models/file/file.dart';
|
|||
import 'package:photos/models/file/file_type.dart';
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import "package:photos/ui/components/info_item_widget.dart";
|
||||
import "package:photos/utils/data_util.dart";
|
||||
import "package:photos/utils/date_time_util.dart";
|
||||
import "package:photos/utils/file_util.dart";
|
||||
import "package:photos/utils/magic_util.dart";
|
||||
|
@ -78,7 +79,7 @@ class _FilePropertiesItemWidgetState extends State<FilePropertiesItemWidget> {
|
|||
}
|
||||
subSectionWidgets.add(
|
||||
Text(
|
||||
(fileSize / (1024 * 1024)).toStringAsFixed(2) + " MB",
|
||||
formatBytes(fileSize),
|
||||
style: getEnteTextTheme(context).miniMuted,
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue